summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-02-19 21:29:51 +0000
committerEric Christopher <echristo@gmail.com>2015-02-19 21:29:51 +0000
commitcbdbf3988129b892d63c619fef576a5d7ccb5180 (patch)
tree59c142001c83981820d3114721076646803e21cd /llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
parent457864178fa4fc6b8a1f7bb1099cfd98751823bd (diff)
downloadbcm5719-llvm-cbdbf3988129b892d63c619fef576a5d7ccb5180.tar.gz
bcm5719-llvm-cbdbf3988129b892d63c619fef576a5d7ccb5180.zip
MCTargetOptions reside on the TargetMachine that we always have via
TargetOptions. llvm-svn: 229917
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
index a8b00561fe7..a2e5460a6c6 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<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");
OpenPOWER on IntegriCloud