diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-24 18:19:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-24 18:19:01 +0000 |
commit | 3a03f7434960ef30ef41804d2aff57db8ba6b13a (patch) | |
tree | 53657c607708ee6f890edc6d5fd320899bafaf5d | |
parent | 9dd71749bca4d3d1c7163110067b5cc3ee777fcb (diff) |
remove dead code now that personality functions don't print stubs directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74092 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 3df11322a9..fb1d9eeb36 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -1157,8 +1157,6 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) { O << '\n'; - // Print global value stubs. - bool InStubSection = false; // Add the (possibly multiple) personalities to the set of global value // stubs. Only referenced functions get into the Personalities list. if (TAI->doesSupportExceptionHandling() && MMI && !Subtarget->is64Bit()) { @@ -1166,11 +1164,6 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) { for (unsigned i = 0, e = Personalities.size(); i != e; ++i) { if (Personalities[i] == 0) continue; - if (!InStubSection) { - SwitchToDataSection( - "\t.section __IMPORT,__pointers,non_lazy_symbol_pointers"); - InStubSection = true; - } std::string Name = Mang->getValueName(Personalities[i]); decorateName(Name, Personalities[i]); GVStubs.insert(Name); @@ -1178,7 +1171,7 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) { } // Output stubs for external and common global variables. - if (!InStubSection && !GVStubs.empty()) + if (!GVStubs.empty()) SwitchToDataSection( "\t.section __IMPORT,__pointers,non_lazy_symbol_pointers"); for (StringSet<>::iterator i = GVStubs.begin(), e = GVStubs.end(); |