summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-31 20:52:39 +0000
committerChris Lattner <sabre@nondot.org>2009-07-31 20:52:39 +0000
commitd25701c114e108af5e2f9f40a05c6ad0276ecb40 (patch)
treec8e4cad3867b1623a78a35a34f5ae6f9a5a62eca /llvm/lib/CodeGen
parentf3ee7eaac3a75c91703f04bab1040792a414e5a9 (diff)
downloadbcm5719-llvm-d25701c114e108af5e2f9f40a05c6ad0276ecb40.tar.gz
bcm5719-llvm-d25701c114e108af5e2f9f40a05c6ad0276ecb40.zip
move emitUsedDirectiveFor to TargetLoweringObjectFile and rename it to
indicate that it is a predicate, not an emitter. This eliminates TAI dependencies on Mangler and GlobalValue. llvm-svn: 77726
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 178bbaa907c..077d72e93d9 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -564,7 +564,7 @@ void AsmPrinter::EmitLLVMUsedList(Constant *List) {
for (unsigned i = 0, e = InitList->getNumOperands(); i != e; ++i) {
const GlobalValue *GV =
dyn_cast<GlobalValue>(InitList->getOperand(i)->stripPointerCasts());
- if (GV && TAI->emitUsedDirectiveFor(GV, Mang)) {
+ if (GV && getObjFileLowering().shouldEmitUsedDirectiveFor(GV, Mang)) {
O << Directive;
EmitConstantValueOnly(InitList->getOperand(i));
O << '\n';
OpenPOWER on IntegriCloud