[cfe-commits] r121950 - /cfe/trunk/tools/driver/cc1as_main.cpp
Daniel Dunbar
daniel at zuster.org
Wed Dec 15 19:06:05 PST 2010
Author: ddunbar
Date: Wed Dec 15 21:06:05 2010
New Revision: 121950
URL: http://llvm.org/viewvc/llvm-project?rev=121950&view=rev
Log:
Update for LLVM API change.
Modified:
cfe/trunk/tools/driver/cc1as_main.cpp
Modified: cfe/trunk/tools/driver/cc1as_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1as_main.cpp?rev=121950&r1=121949&r2=121950&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Wed Dec 15 21:06:05 2010
@@ -274,10 +274,13 @@
MCInstPrinter *IP =
TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI);
MCCodeEmitter *CE = 0;
- if (Opts.ShowEncoding)
+ TargetAsmBackend *TAB = 0;
+ if (Opts.ShowEncoding) {
CE = TheTarget->createCodeEmitter(*TM, Ctx);
+ TAB = TheTarget->createAsmBackend(Opts.Triple);
+ }
Str.reset(TheTarget->createAsmStreamer(Ctx, *Out, /*asmverbose*/true,
- /*useLoc*/ true, IP, CE,
+ /*useLoc*/ true, IP, CE, TAB,
Opts.ShowInst));
} else if (Opts.OutputType == AssemblerInvocation::FT_Null) {
Str.reset(createNullStreamer(Ctx));
More information about the cfe-commits
mailing list