Make MCRegisterInfo available to the the MCInstPrinter.
[oota-llvm.git] / tools / llvm-mc / llvm-mc.cpp
index f2365c67611466daab3931156452c2feeb9f8085..dc7297412d65d3b572126f5c16245e1556661b4a 100644 (file)
@@ -416,7 +416,7 @@ static int AssembleInput(const char *ProgName) {
   // FIXME: There is a bit of code duplication with addPassesToEmitFile.
   if (FileType == OFT_AssemblyFile) {
     MCInstPrinter *IP =
-      TheTarget->createMCInstPrinter(OutputAsmVariant, *MAI, *STI);
+      TheTarget->createMCInstPrinter(OutputAsmVariant, *MAI, *MRI, *STI);
     MCCodeEmitter *CE = 0;
     MCAsmBackend *MAB = 0;
     if (ShowEncoding) {