]> granicus.if.org Git - clang/commitdiff
Fix up MCInstPrinter creation to take the new SubtargetInfo parameter (see LLVM r139237)
authorJames Molloy <james.molloy@arm.com>
Wed, 7 Sep 2011 17:25:30 +0000 (17:25 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 7 Sep 2011 17:25:30 +0000 (17:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139238 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1as_main.cpp

index 9762bed6af320fde3135ccebba873c43b89b238d..bfc49149958e0b2e4a8ee311e26913e26d6f7c63 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(Opts.OutputAsmVariant, *MAI);
+      TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI, *STI);
     MCCodeEmitter *CE = 0;
     MCAsmBackend *MAB = 0;
     if (Opts.ShowEncoding) {