diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:12:00 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:12:00 +0000 |
| commit | 2300eaa82886a96b176c48cfe74f81ce1fd01868 (patch) | |
| tree | d43f7facee1ca18659ffe61afc6c3334588f5a8c | |
| parent | 20237e5071e11debf64d8bd16413b959f0879c00 (diff) | |
| download | bcm5719-llvm-2300eaa82886a96b176c48cfe74f81ce1fd01868.tar.gz bcm5719-llvm-2300eaa82886a96b176c48cfe74f81ce1fd01868.zip | |
Unbreak
llvm-svn: 75996
| -rw-r--r-- | llvm/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/llvm/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp b/llvm/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp index 87b0e5e379d..1a911dbc1d6 100644 --- a/llvm/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp +++ b/llvm/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp @@ -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: { |

