[llvm] r229917 - MCTargetOptions reside on the TargetMachine that we always have via

Eric Christopher echristo at gmail.com
Thu Feb 19 13:29:51 PST 2015


Author: echristo
Date: Thu Feb 19 15:29:51 2015
New Revision: 229917

URL: http://llvm.org/viewvc/llvm-project?rev=229917&view=rev
Log:
MCTargetOptions reside on the TargetMachine that we always have via
TargetOptions.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp?rev=229917&r1=229916&r2=229917&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp Thu Feb 19 15:29:51 2015
@@ -148,11 +148,8 @@ void AsmPrinter::EmitInlineAsm(StringRef
   // emitInlineAsmEnd().
   MCSubtargetInfo STIOrig = *STI;
 
-  MCTargetOptions MCOptions;
-  if (MF)
-    MCOptions = MF->getTarget().Options.MCOptions;
-  std::unique_ptr<MCTargetAsmParser> TAP(
-      TM.getTarget().createMCAsmParser(*STI, *Parser, *MII, MCOptions));
+  std::unique_ptr<MCTargetAsmParser> 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");





More information about the llvm-commits mailing list