Make MCRegisterInfo available to the the MCInstPrinter.
[oota-llvm.git] / lib / CodeGen / LLVMTargetMachine.cpp
index f10bdb5c5c9632f3c2f85d7dafc399efa00eaa74..17633e2114dcc59646960623d817d8786bba33fd 100644 (file)
@@ -171,7 +171,8 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
   switch (FileType) {
   case CGFT_AssemblyFile: {
     MCInstPrinter *InstPrinter =
-      getTarget().createMCInstPrinter(MAI.getAssemblerDialect(), MAI, STI);
+      getTarget().createMCInstPrinter(MAI.getAssemblerDialect(), MAI,
+                                      Context->getRegisterInfo(), STI);
 
     // Create a code emitter if asked to show the encoding.
     MCCodeEmitter *MCE = 0;