aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/Target/X86/X86ATTAsmPrinter.cpp3
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp
index 88d0c7c..85ae838 100755
--- a/lib/Target/X86/X86ATTAsmPrinter.cpp
+++ b/lib/Target/X86/X86ATTAsmPrinter.cpp
@@ -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)
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index 77c965a..a37cbb5 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -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("");