Make MCRegisterInfo available to the the MCInstPrinter.
[oota-llvm.git] / lib / Target / MSP430 / MCTargetDesc / MSP430MCTargetDesc.cpp
index 22cc33ab66162ad47e074577f46e8701625d5ff4..85450552d37a208b6fe3b42fa1da5b2df6bc538e 100644 (file)
@@ -61,9 +61,10 @@ static MCCodeGenInfo *createMSP430MCCodeGenInfo(StringRef TT, Reloc::Model RM,
 static MCInstPrinter *createMSP430MCInstPrinter(const Target &T,
                                                 unsigned SyntaxVariant,
                                                 const MCAsmInfo &MAI,
+                                                const MCRegisterInfo &MRI,
                                                 const MCSubtargetInfo &STI) {
   if (SyntaxVariant == 0)
-    return new MSP430InstPrinter(MAI);
+    return new MSP430InstPrinter(MAI, MRI);
   return 0;
 }