summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-19 04:34:02 +0000
committerChris Lattner <sabre@nondot.org>2010-01-19 04:34:02 +0000
commite9d28b19cf3864c0e44e15036dc71e8e4eb31088 (patch)
tree57430d35bc32d0a9143f9c43608caf92c1c5c4bf /llvm/lib/Target/PowerPC
parent58d59fe394e7c773bff27b412d90f5d0523187aa (diff)
downloadbcm5719-llvm-e9d28b19cf3864c0e44e15036dc71e8e4eb31088.tar.gz
bcm5719-llvm-e9d28b19cf3864c0e44e15036dc71e8e4eb31088.zip
move production of .reference directives for static ctor/dtor list on
darwin into common code. llvm-svn: 93849
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index e17d89a363b..a1c117dd041 100644
--- a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
@@ -933,15 +933,8 @@ void PPCDarwinAsmPrinter::PrintGlobalVariable(const GlobalVariable *GVar) {
return; // External global require no code
// Check to see if this is a special global used by LLVM, if so, emit it.
- if (EmitSpecialLLVMGlobal(GVar)) {
- if (TM.getRelocationModel() == Reloc::Static) {
- if (GVar->getName() == "llvm.global_ctors")
- O << ".reference .constructors_used\n";
- else if (GVar->getName() == "llvm.global_dtors")
- O << ".reference .destructors_used\n";
- }
+ if (EmitSpecialLLVMGlobal(GVar))
return;
- }
MCSymbol *GVarSym = GetGlobalValueSymbol(GVar);
printVisibility(GVarSym, GVar->getVisibility());
OpenPOWER on IntegriCloud