diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-08-07 09:54:23 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-08-07 09:54:23 +0000 |
commit | 0f3cc657387d44cd7c56e4ddea896a50ab9106b8 (patch) | |
tree | 986da786619ef83826de9e251ff958929c7b49c6 /lib/Target/X86/X86ATTAsmPrinter.cpp | |
parent | 79579c911f073073ab2108de71f09a4d6021760c (diff) |
Switch ARM to new section handling stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ATTAsmPrinter.cpp')
-rw-r--r-- | lib/Target/X86/X86ATTAsmPrinter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp index 8c688f354f..88787e1996 100644 --- a/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -754,8 +754,6 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { if (!GVar->hasInitializer()) return; // External global require no code - std::string SectionName = TAI->SectionForGlobal(GVar); - // Check to see if this is a special global used by LLVM, if so, emit it. if (EmitSpecialLLVMGlobal(GVar)) { if (Subtarget->isTargetDarwin() && @@ -768,6 +766,7 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { return; } + std::string SectionName = TAI->SectionForGlobal(GVar); std::string name = Mang->getValueName(GVar); Constant *C = GVar->getInitializer(); const Type *Type = C->getType(); |