From d162d096ddf7972819e5b700890726a2ea85f272 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Tue, 14 Jan 2020 13:40:42 +0000 Subject: Rename asm! to llvm_asm! asm! is left as a wrapper around llvm_asm! to maintain compatibility. --- src/librustc/mir/mod.rs | 10 +++++----- src/librustc/mir/visit.rs | 2 +- src/librustc/ty/structural_impls.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/librustc') diff --git a/src/librustc/mir/mod.rs b/src/librustc/mir/mod.rs index 1e47317cf1a..9ba9d816d0f 100644 --- a/src/librustc/mir/mod.rs +++ b/src/librustc/mir/mod.rs @@ -1584,7 +1584,7 @@ pub enum StatementKind<'tcx> { /// Executes a piece of inline Assembly. Stored in a Box to keep the size /// of `StatementKind` low. - InlineAsm(Box>), + LlvmInlineAsm(Box>), /// Retag references in the given place, ensuring they got fresh tags. This is /// part of the Stacked Borrows model. These statements are currently only interpreted @@ -1668,8 +1668,8 @@ pub enum FakeReadCause { } #[derive(Clone, Debug, PartialEq, RustcEncodable, RustcDecodable, HashStable, TypeFoldable)] -pub struct InlineAsm<'tcx> { - pub asm: hir::InlineAsmInner, +pub struct LlvmInlineAsm<'tcx> { + pub asm: hir::LlvmInlineAsmInner, pub outputs: Box<[Place<'tcx>]>, pub inputs: Box<[(Span, Operand<'tcx>)]>, } @@ -1696,8 +1696,8 @@ impl Debug for Statement<'_> { SetDiscriminant { ref place, variant_index } => { write!(fmt, "discriminant({:?}) = {:?}", place, variant_index) } - InlineAsm(ref asm) => { - write!(fmt, "asm!({:?} : {:?} : {:?})", asm.asm, asm.outputs, asm.inputs) + LlvmInlineAsm(ref asm) => { + write!(fmt, "llvm_asm!({:?} : {:?} : {:?})", asm.asm, asm.outputs, asm.inputs) } AscribeUserType(box (ref place, ref c_ty), ref variance) => { write!(fmt, "AscribeUserType({:?}, {:?}, {:?})", place, variance, c_ty) diff --git a/src/librustc/mir/visit.rs b/src/librustc/mir/visit.rs index 2aca6f684f4..c1b27b40f7d 100644 --- a/src/librustc/mir/visit.rs +++ b/src/librustc/mir/visit.rs @@ -385,7 +385,7 @@ macro_rules! make_mir_visitor { location ); } - StatementKind::InlineAsm(asm) => { + StatementKind::LlvmInlineAsm(asm) => { for output in & $($mutability)? asm.outputs[..] { self.visit_place( output, diff --git a/src/librustc/ty/structural_impls.rs b/src/librustc/ty/structural_impls.rs index 81be5b11143..429791d09a4 100644 --- a/src/librustc/ty/structural_impls.rs +++ b/src/librustc/ty/structural_impls.rs @@ -263,7 +263,7 @@ CloneTypeFoldableAndLiftImpls! { ::rustc_span::symbol::Symbol, ::rustc_hir::def::Res, ::rustc_hir::def_id::DefId, - ::rustc_hir::InlineAsmInner, + ::rustc_hir::LlvmInlineAsmInner, ::rustc_hir::MatchSource, ::rustc_hir::Mutability, ::rustc_hir::Unsafety, -- cgit 1.4.1-3-g733a5