aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitb5c952a6aa643bfa7a002013f46e199e7a86bb3f (patch)
tree6315c4827b431ed704a0a998ebe2ebb076a45d94 /lib/CodeGen
parent935d25b611e8048d644dae9a062eaee6b779ad2f (diff)
downloadexternal_llvm-b5c952a6aa643bfa7a002013f46e199e7a86bb3f.zip
external_llvm-b5c952a6aa643bfa7a002013f46e199e7a86bb3f.tar.gz
external_llvm-b5c952a6aa643bfa7a002013f46e199e7a86bb3f.tar.bz2
convert ctors/dtors section to be in TLOF instead of
TAI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 7cb7e07..0a81bd7 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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;