diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-12-01 07:38:23 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-12-01 07:38:23 +0000 |
commit | 6d7d310519ad3010a3830eef3d3eed1068e411a1 (patch) | |
tree | e1312ddd6b4962e5985772e46b6bb04fbe5d5631 /lib/Target/X86 | |
parent | de97f9cd22381015806375e63bf03f5d3ae16c0c (diff) | |
download | external_llvm-6d7d310519ad3010a3830eef3d3eed1068e411a1.zip external_llvm-6d7d310519ad3010a3830eef3d3eed1068e411a1.tar.gz external_llvm-6d7d310519ad3010a3830eef3d3eed1068e411a1.tar.bz2 |
Minor code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rwxr-xr-x | lib/Target/X86/X86ATTAsmPrinter.cpp | 3 | ||||
-rw-r--r-- | lib/Target/X86/X86AsmPrinter.cpp | 3 |
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(""); |