From: Eric Christopher Date: Thu, 19 Feb 2015 21:29:51 +0000 (+0000) Subject: MCTargetOptions reside on the TargetMachine that we always have via X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a4a7b848d29410ed52b72a0ec6b62233378220d5;p=oota-llvm.git MCTargetOptions reside on the TargetMachine that we always have via TargetOptions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229917 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp b/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp index a8b00561fe7..a2e5460a6c6 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp +++ b/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");