summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-02 00:34:36 +0000
committerChris Lattner <sabre@nondot.org>2009-08-02 00:34:36 +0000
commit4e7dfafc03188ad9e14e9c3c2b8039224792c5b7 (patch)
treece59a660f6a02724d12ef8bd0397ada94a5325c5 /llvm/lib/CodeGen
parentc4d6f83f20b6ab19a13f5e4181ed95256fa106e6 (diff)
downloadbcm5719-llvm-4e7dfafc03188ad9e14e9c3c2b8039224792c5b7.tar.gz
bcm5719-llvm-4e7dfafc03188ad9e14e9c3c2b8039224792c5b7.zip
convert ctors/dtors section to be in TLOF instead of
TAI. llvm-svn: 77842
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 7cb7e07df4d..0a81bd7c2a8 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -532,14 +532,14 @@ bool AsmPrinter::EmitSpecialLLVMGlobal(const GlobalVariable *GV) {
const TargetData *TD = TM.getTargetData();
unsigned Align = Log2_32(TD->getPointerPrefAlignment());
if (GV->getName() == "llvm.global_ctors") {
- SwitchToDataSection(TAI->getStaticCtorsSection());
+ SwitchToSection(getObjFileLowering().getStaticCtorSection());
EmitAlignment(Align, 0);
EmitXXStructorList(GV->getInitializer());
return true;
}
if (GV->getName() == "llvm.global_dtors") {
- SwitchToDataSection(TAI->getStaticDtorsSection());
+ SwitchToSection(getObjFileLowering().getStaticDtorSection());
EmitAlignment(Align, 0);
EmitXXStructorList(GV->getInitializer());
return true;
OpenPOWER on IntegriCloud