From cbdbf3988129b892d63c619fef576a5d7ccb5180 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 19 Feb 2015 21:29:51 +0000 Subject: [PATCH] MCTargetOptions reside on the TargetMachine that we always have via TargetOptions. llvm-svn: 229917 --- llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp index a8b0056..a2e5460 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp @@ -148,11 +148,8 @@ void AsmPrinter::EmitInlineAsm(StringRef Str, const MDNode *LocMDNode, // emitInlineAsmEnd(). MCSubtargetInfo STIOrig = *STI; - MCTargetOptions MCOptions; - if (MF) - MCOptions = MF->getTarget().Options.MCOptions; - std::unique_ptr TAP( - TM.getTarget().createMCAsmParser(*STI, *Parser, *MII, MCOptions)); + std::unique_ptr TAP(TM.getTarget().createMCAsmParser( + *STI, *Parser, *MII, TM.Options.MCOptions)); if (!TAP) report_fatal_error("Inline asm not supported by this streamer because" " we don't have an asm parser for this target\n"); -- 2.7.4