Remove deprecated LLVM-style inline assembly
This commit is contained in:
parent
409276cf55
commit
7ec4de3ab8
2 changed files with 1 additions and 13 deletions
12
src/base.rs
12
src/base.rs
|
@ -749,18 +749,6 @@ fn codegen_stmt<'tcx>(
|
||||||
| StatementKind::Retag { .. }
|
| StatementKind::Retag { .. }
|
||||||
| StatementKind::AscribeUserType(..) => {}
|
| 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::Coverage { .. } => fx.tcx.sess.fatal("-Zcoverage is unimplemented"),
|
||||||
StatementKind::CopyNonOverlapping(inner) => {
|
StatementKind::CopyNonOverlapping(inner) => {
|
||||||
let dst = codegen_operand(fx, &inner.dst);
|
let dst = codegen_operand(fx, &inner.dst);
|
||||||
|
|
|
@ -506,7 +506,7 @@ pub(crate) fn mir_operand_get_const_val<'tcx>(
|
||||||
{
|
{
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
StatementKind::LlvmInlineAsm(_) | StatementKind::CopyNonOverlapping(_) => {
|
StatementKind::CopyNonOverlapping(_) => {
|
||||||
return None;
|
return None;
|
||||||
} // conservative handling
|
} // conservative handling
|
||||||
StatementKind::Assign(_)
|
StatementKind::Assign(_)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue