summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-03-05 19:33:20 +0000
committerJim Grosbach <grosbach@apple.com>2012-03-05 19:33:20 +0000
commitfd93a595571dc0d9d61e6c6a112b649163c57440 (patch)
tree2bd5a55c85ff3b2a6fd473a375c9234f9f9d5cf9 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent7cf6db7e3c13bdc3967611651518a8ba6989bd73 (diff)
downloadbcm5719-llvm-fd93a595571dc0d9d61e6c6a112b649163c57440.tar.gz
bcm5719-llvm-fd93a595571dc0d9d61e6c6a112b649163c57440.zip
Make MCRegisterInfo available to the the MCInstPrinter.
Used to allow context sensitive printing of super-register or sub-register references. llvm-svn: 152043
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index f10bdb5c5c9..17633e2114d 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -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;
OpenPOWER on IntegriCloud