[cfe-commits] r127987 - /cfe/trunk/tools/driver/cc1as_main.cpp

Bill Wendling isanbard at gmail.com
Sun Mar 20 22:02:04 PDT 2011


Author: void
Date: Mon Mar 21 00:02:03 2011
New Revision: 127987

URL: http://llvm.org/viewvc/llvm-project?rev=127987&view=rev
Log:
Pass in the TargetMachine parameter to the inst printer.

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=127987&r1=127986&r2=127987&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Mon Mar 21 00:02:03 2011
@@ -275,7 +275,7 @@
   // FIXME: There is a bit of code duplication with addPassesToEmitFile.
   if (Opts.OutputType == AssemblerInvocation::FT_Asm) {
     MCInstPrinter *IP =
-      TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI);
+      TheTarget->createMCInstPrinter(*TM, Opts.OutputAsmVariant, *MAI);
     MCCodeEmitter *CE = 0;
     TargetAsmBackend *TAB = 0;
     if (Opts.ShowEncoding) {





More information about the cfe-commits mailing list