Unbreak
authorAnton Korobeynikov <asl@math.spbu.ru>
Thu, 16 Jul 2009 14:12:00 +0000 (14:12 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Thu, 16 Jul 2009 14:12:00 +0000 (14:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75996 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp

index 87b0e5e379d7e35f4a328fbb08757355fc405b42..1a911dbc1d68b4ce68d23ebb70e39ef47bd5ade8 100644 (file)
@@ -100,29 +100,9 @@ bool SystemZAsmPrinter::doInitialization(Module &M) {
 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 @@ void SystemZAsmPrinter::printOperand(const MachineInstr *MI, int OpNum,
 
     O << Name;
 
-    if (GV->hasExternalWeakLinkage())
-      ExtWeakSymbols.insert(GV);
-
     return;
   }
   case MachineOperand::MO_ExternalSymbol: {