mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
Unbreak
llvm-svn: 75996
This commit is contained in:
parent
1764c55d85
commit
07380f3ab0
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user