mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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:
parent
de97f9cd22
commit
6d7d310519
@ -256,9 +256,8 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
O << Name;
|
||||
}
|
||||
|
||||
if (GV->hasExternalWeakLinkage()) {
|
||||
if (GV->hasExternalWeakLinkage())
|
||||
ExtWeakSymbols.insert(Name);
|
||||
}
|
||||
|
||||
int Offset = MO.getOffset();
|
||||
if (Offset > 0)
|
||||
|
@ -283,10 +283,9 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
||||
O << "\t.ascii \" -export:" << *i << "\"\n";
|
||||
}
|
||||
|
||||
if (Subtarget->isTargetCygwin()) {
|
||||
if (!Subtarget->isTargetCygwin()) {
|
||||
// There is no external weak linkage on Mingw32 platform.
|
||||
// Defaulting to external
|
||||
} else {
|
||||
if (ExtWeakSymbols.begin() != ExtWeakSymbols.end())
|
||||
SwitchToDataSection("");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user