diff options
| author | Bill Wendling <isanbard@gmail.com> | 2011-03-21 04:13:46 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2011-03-21 04:13:46 +0000 |
| commit | 00f0cddfd47ec852db8a5b609ce44e513577e979 (patch) | |
| tree | 90a1cebb90d52f0964ce9cac228c4f159ac06917 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
| parent | 701822a48e4c82c5a08f97fce97da683f6e29105 (diff) | |
| download | bcm5719-llvm-00f0cddfd47ec852db8a5b609ce44e513577e979.tar.gz bcm5719-llvm-00f0cddfd47ec852db8a5b609ce44e513577e979.zip | |
We need to pass the TargetMachine object to the InstPrinter if we are printing
the alias of an InstAlias instead of the thing being aliased. Because we need to
know the features that are valid for an InstAlias.
This is part of a work-in-progress.
llvm-svn: 127986
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index a9e8045918f..89013a63cab 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -133,7 +133,7 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, default: return true; case CGFT_AssemblyFile: { MCInstPrinter *InstPrinter = - getTarget().createMCInstPrinter(MAI.getAssemblerDialect(), MAI); + getTarget().createMCInstPrinter(*this, MAI.getAssemblerDialect(), MAI); // Create a code emitter if asked to show the encoding. MCCodeEmitter *MCE = 0; |

