]> granicus.if.org Git - clang/commitdiff
createMCInstPrinter doesn't need TargetMachine anymore.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 6 Jul 2011 19:45:57 +0000 (19:45 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 6 Jul 2011 19:45:57 +0000 (19:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134526 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1as_main.cpp

index c8211858328be5890c9cb5dc291837dda92d3703..c082fdaa01b8a6bc079183e90a56df98cd797c86 100644 (file)
@@ -282,7 +282,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(*TM, Opts.OutputAsmVariant, *MAI);
+      TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI);
     MCCodeEmitter *CE = 0;
     TargetAsmBackend *TAB = 0;
     if (Opts.ShowEncoding) {