diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-04-02 06:09:36 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-04-02 06:09:36 +0000 |
commit | 54bfde79db0c7f01d9f65a7b4113595f8db8f73a (patch) | |
tree | c25d56d8cd8520f24a1ee363f187f6f16208c9bf /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 3a0bcf06ef76b76793cb96eff214fe981e48cfb8 (diff) | |
download | llvm-54bfde79db0c7f01d9f65a7b4113595f8db8f73a.zip llvm-54bfde79db0c7f01d9f65a7b4113595f8db8f73a.tar.gz llvm-54bfde79db0c7f01d9f65a7b4113595f8db8f73a.tar.bz2 |
Make MCInstrInfo available to the MCInstPrinter. This will be used to remove getInstructionName and the static data it contains since the same tables are already in MCInstrInfo.
llvm-svn: 153860
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 97e6547..a1f479a 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -172,6 +172,7 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, case CGFT_AssemblyFile: { MCInstPrinter *InstPrinter = getTarget().createMCInstPrinter(MAI.getAssemblerDialect(), MAI, + *getInstrInfo(), Context->getRegisterInfo(), STI); // Create a code emitter if asked to show the encoding. |