]> granicus.if.org Git - clang/commitdiff
Add MCRegisterInfo to the MCInstPrinter factory function interface.
authorJim Grosbach <grosbach@apple.com>
Mon, 5 Mar 2012 19:33:41 +0000 (19:33 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 5 Mar 2012 19:33:41 +0000 (19:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152046 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1as_main.cpp

index 94e91bddcb22d5df94159a015264a61f863d2a6c..49a4172c04760e9a3b11655d1f7f638d6b7c454e 100644 (file)
@@ -323,7 +323,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
   // FIXME: There is a bit of code duplication with addPassesToEmitFile.
   if (Opts.OutputType == AssemblerInvocation::FT_Asm) {
     MCInstPrinter *IP =
-      TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI, *STI);
+      TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI, *MRI, *STI);
     MCCodeEmitter *CE = 0;
     MCAsmBackend *MAB = 0;
     if (Opts.ShowEncoding) {