[llvm-commits] [llvm] r74092 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp

Chris Lattner sabre at nondot.org
Wed Jun 24 11:19:01 PDT 2009


Author: lattner
Date: Wed Jun 24 13:19:01 2009
New Revision: 74092

URL: http://llvm.org/viewvc/llvm-project?rev=74092&view=rev
Log:
remove dead code now that personality functions don't print stubs directly.

Modified:
    llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp?rev=74092&r1=74091&r2=74092&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Wed Jun 24 13:19:01 2009
@@ -1157,8 +1157,6 @@
 
     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 @@
       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 @@
     }
 
     // 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();





More information about the llvm-commits mailing list