summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-13 19:38:51 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-13 19:38:51 +0000
commit95f58463e58dfc3e5921aee211e1e29402cad70a (patch)
tree70c568ec78d13144b8fdd1ca291c7e3c80e17cb7 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent2631d8c5179d94a33a87f1b9fa59652dae71e137 (diff)
downloadbcm5719-llvm-95f58463e58dfc3e5921aee211e1e29402cad70a.tar.gz
bcm5719-llvm-95f58463e58dfc3e5921aee211e1e29402cad70a.zip
TargetRegistry: Reorganize AsmPrinter construction so that clients pass in the
TargetAsmInfo. This eliminates a dependency on TargetMachine.h from TargetRegistry.h, which technically was a layering violation. - Clients probably can only sensibly pass in the same TargetAsmInfo as the TargetMachine has, but there are only limited clients of this API. llvm-svn: 78928
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 71efa1375ee..cafe4d3f14b 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -106,7 +106,8 @@ bool LLVMTargetMachine::addAssemblyEmitter(PassManagerBase &PM,
CodeGenOpt::Level OptLevel,
bool Verbose,
formatted_raw_ostream &Out) {
- FunctionPass *Printer = getTarget().createAsmPrinter(Out, *this, Verbose);
+ FunctionPass *Printer =
+ getTarget().createAsmPrinter(Out, *this, getTargetAsmInfo(), Verbose);
if (!Printer)
return true;
OpenPOWER on IntegriCloud