summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-07-01 20:41:56 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-07-01 20:41:56 +0000
commit02877d6e851f86761783793f0541747f92ec2571 (patch)
treea9b36c16dd9d521f5e3ad664fb6b715a18970ece /llvm/lib/CodeGen
parent96278c19fb96f0e570193831510c138d260c2f91 (diff)
downloadbcm5719-llvm-02877d6e851f86761783793f0541747f92ec2571.tar.gz
bcm5719-llvm-02877d6e851f86761783793f0541747f92ec2571.zip
MC: Pass the target instance to the AsmParser constructor.
llvm-svn: 107426
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
index ba6fed2a78b..e181305ea90 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
@@ -83,7 +83,7 @@ void AsmPrinter::EmitInlineAsm(StringRef Str, unsigned LocCookie) const {
// Tell SrcMgr about this buffer, it takes ownership of the buffer.
SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
- AsmParser Parser(SrcMgr, OutContext, OutStreamer, *MAI);
+ AsmParser Parser(TM.getTarget(), SrcMgr, OutContext, OutStreamer, *MAI);
OwningPtr<TargetAsmParser> TAP(TM.getTarget().createAsmParser(Parser));
if (!TAP)
report_fatal_error("Inline asm not supported by this streamer because"
OpenPOWER on IntegriCloud