Minor code clean up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32067 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-12-01 07:38:23 +00:00
parent de97f9cd22
commit 6d7d310519
2 changed files with 2 additions and 4 deletions

View File

@ -256,9 +256,8 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
O << Name; O << Name;
} }
if (GV->hasExternalWeakLinkage()) { if (GV->hasExternalWeakLinkage())
ExtWeakSymbols.insert(Name); ExtWeakSymbols.insert(Name);
}
int Offset = MO.getOffset(); int Offset = MO.getOffset();
if (Offset > 0) if (Offset > 0)

View File

@ -283,10 +283,9 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
O << "\t.ascii \" -export:" << *i << "\"\n"; O << "\t.ascii \" -export:" << *i << "\"\n";
} }
if (Subtarget->isTargetCygwin()) { if (!Subtarget->isTargetCygwin()) {
// There is no external weak linkage on Mingw32 platform. // There is no external weak linkage on Mingw32 platform.
// Defaulting to external // Defaulting to external
} else {
if (ExtWeakSymbols.begin() != ExtWeakSymbols.end()) if (ExtWeakSymbols.begin() != ExtWeakSymbols.end())
SwitchToDataSection(""); SwitchToDataSection("");