[llvm-commits] [llvm] r75996 - /llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp

Anton Korobeynikov asl at math.spbu.ru
Thu Jul 16 07:12:00 PDT 2009


Author: asl
Date: Thu Jul 16 09:12:00 2009
New Revision: 75996

URL: http://llvm.org/viewvc/llvm-project?rev=75996&view=rev
Log:
Unbreak

Modified:
    llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp?rev=75996&r1=75995&r2=75996&view=diff

==============================================================================
--- llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp Thu Jul 16 09:12:00 2009
@@ -100,29 +100,9 @@
 bool SystemZAsmPrinter::doFinalization(Module &M) {
   // Print out module-level global variables here.
   for (Module::const_global_iterator I = M.global_begin(), E = M.global_end();
-       I != E; ++I) {
+       I != E; ++I)
     printModuleLevelGV(I);
 
-    // If the global is a extern weak symbol, remember to emit the weak
-    // reference!
-    // FIXME: This is rather hacky, since we'll emit references to ALL weak
-    // stuff, not used. But currently it's the only way to deal with extern weak
-    // initializers hidden deep inside constant expressions.
-    if (I->hasExternalWeakLinkage())
-      ExtWeakSymbols.insert(I);
-  }
-
-  for (Module::const_iterator I = M.begin(), E = M.end();
-       I != E; ++I) {
-    // If the global is a extern weak symbol, remember to emit the weak
-    // reference!
-    // FIXME: This is rather hacky, since we'll emit references to ALL weak
-    // stuff, not used. But currently it's the only way to deal with extern weak
-    // initializers hidden deep inside constant expressions.
-    if (I->hasExternalWeakLinkage())
-      ExtWeakSymbols.insert(I);
-  }
-
   return AsmPrinter::doFinalization(M);
 }
 
@@ -245,9 +225,6 @@
 
     O << Name;
 
-    if (GV->hasExternalWeakLinkage())
-      ExtWeakSymbols.insert(GV);
-
     return;
   }
   case MachineOperand::MO_ExternalSymbol: {





More information about the llvm-commits mailing list