Skip to content

Commit 68cbb46

Browse files
committed
Remove deprecated LLVM-style inline assembly
1 parent 09afd64 commit 68cbb46

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/asm.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use rustc_codegen_ssa::mir::operand::OperandValue;
44
use rustc_codegen_ssa::mir::place::PlaceRef;
55
use rustc_codegen_ssa::traits::{AsmBuilderMethods, AsmMethods, BaseTypeMethods, BuilderMethods, GlobalAsmOperandRef, InlineAsmOperandRef};
66

7-
use rustc_hir::LlvmInlineAsmInner;
87
use rustc_middle::{bug, ty::Instance};
98
use rustc_span::{Span, Symbol};
109
use rustc_target::asm::*;
@@ -106,17 +105,6 @@ enum ConstraintOrRegister {
106105

107106

108107
impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
109-
fn codegen_llvm_inline_asm(&mut self, _ia: &LlvmInlineAsmInner, _outputs: Vec<PlaceRef<'tcx, RValue<'gcc>>>, _inputs: Vec<RValue<'gcc>>, span: Span) -> bool {
110-
self.sess().struct_span_err(span, "GCC backend does not support `llvm_asm!`")
111-
.help("consider using the `asm!` macro instead")
112-
.emit();
113-
114-
// We return `true` even if we've failed to generate the asm
115-
// because we want to suppress the "malformed inline assembly" error
116-
// generated by the frontend.
117-
true
118-
}
119-
120108
fn codegen_inline_asm(&mut self, template: &[InlineAsmTemplatePiece], rust_operands: &[InlineAsmOperandRef<'tcx, Self>], options: InlineAsmOptions, span: &[Span], _instance: Instance<'_>, _dest_catch_funclet: Option<(Self::BasicBlock, Self::BasicBlock, Option<&Self::Funclet>)>) {
121109
if options.contains(InlineAsmOptions::MAY_UNWIND) {
122110
self.sess()

0 commit comments

Comments
 (0)