]> granicus.if.org Git - clang/commitdiff
Pass in the TargetMachine parameter to the inst printer.
authorBill Wendling <isanbard@gmail.com>
Mon, 21 Mar 2011 05:02:03 +0000 (05:02 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 21 Mar 2011 05:02:03 +0000 (05:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127987 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1as_main.cpp

index 1d544f3d3c9dd0cc9f109899498c16f62c5b9acb..643bd412bed6531c768b71284b8619363d78521b 100644 (file)
@@ -275,7 +275,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
   // 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) {