diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-01-12 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-01-12 18:51:31 +0100 |
| commit | 7ec4de3ab8b2ed5113503e0ebb8f63ce306337ef (patch) | |
| tree | 9a43dbbce411d2619fe2552e8f1a4e48745c243f | |
| parent | 409276cf55a666932524d9d9dd9e0a0329364db3 (diff) | |
| download | rust-7ec4de3ab8b2ed5113503e0ebb8f63ce306337ef.tar.gz rust-7ec4de3ab8b2ed5113503e0ebb8f63ce306337ef.zip | |
Remove deprecated LLVM-style inline assembly
| -rw-r--r-- | src/base.rs | 12 | ||||
| -rw-r--r-- | src/constant.rs | 2 |
2 files changed, 1 insertions, 13 deletions
diff --git a/src/base.rs b/src/base.rs index b16f5af66f2..5a889734f21 100644 --- a/src/base.rs +++ b/src/base.rs @@ -749,18 +749,6 @@ fn codegen_stmt<'tcx>( | StatementKind::Retag { .. } | StatementKind::AscribeUserType(..) => {} - StatementKind::LlvmInlineAsm(asm) => { - match asm.asm.asm.as_str().trim() { - "" => { - // Black box - } - _ => fx.tcx.sess.span_fatal( - stmt.source_info.span, - "Legacy `llvm_asm!` inline assembly is not supported. \ - Try using the new `asm!` instead.", - ), - } - } StatementKind::Coverage { .. } => fx.tcx.sess.fatal("-Zcoverage is unimplemented"), StatementKind::CopyNonOverlapping(inner) => { let dst = codegen_operand(fx, &inner.dst); diff --git a/src/constant.rs b/src/constant.rs index 9a6c45ae98d..7ef09a1a614 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -506,7 +506,7 @@ pub(crate) fn mir_operand_get_const_val<'tcx>( { return None; } - StatementKind::LlvmInlineAsm(_) | StatementKind::CopyNonOverlapping(_) => { + StatementKind::CopyNonOverlapping(_) => { return None; } // conservative handling StatementKind::Assign(_) |
