aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-09 05:09:24 +0000
committerChris Lattner <sabre@nondot.org>2009-07-09 05:09:24 +0000
commit0f10ba699df45a730e90b47fe525ab56e9172a07 (patch)
treef9c41a4485eeafb17dd90d15a31b3a0438ec5a43 /lib/Target/X86
parent8e8afe4e5ca400d6a151a520c7f7681926a4c522 (diff)
downloadexternal_llvm-0f10ba699df45a730e90b47fe525ab56e9172a07.zip
external_llvm-0f10ba699df45a730e90b47fe525ab56e9172a07.tar.gz
external_llvm-0f10ba699df45a730e90b47fe525ab56e9172a07.tar.bz2
make cygwin use its own stubs set, instead of overloading a darwin one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp5
-rw-r--r--lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
index f8e6e8e..72958cb 100644
--- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
+++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
@@ -351,11 +351,10 @@ void X86ATTAsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo) {
// Assemble call via PLT for externally visible symbols.
if (MO.getTargetFlags() == X86II::MO_PLT)
O << "@PLT";
-
if (Subtarget->isTargetCygMing() && GV->isDeclaration())
// Save function name for later type emission
- FnStubs.insert(Name);
+ CygMingStubs.insert(Name);
}
printOffset(MO.getOffset());
@@ -1050,7 +1049,7 @@ bool X86ATTAsmPrinter::doFinalization(Module &M) {
O << "\t.subsections_via_symbols\n";
} else if (Subtarget->isTargetCygMing()) {
// Emit type information for external functions
- for (StringSet<>::iterator i = FnStubs.begin(), e = FnStubs.end();
+ for (StringSet<>::iterator i = CygMingStubs.begin(), e = CygMingStubs.end();
i != e; ++i) {
O << "\t.def\t " << i->getKeyData()
<< ";\t.scl\t" << COFF::C_EXT
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
index f47daf1..64558d5 100644
--- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
+++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
@@ -199,7 +199,7 @@ class VISIBILITY_HIDDEN X86ATTAsmPrinter : public AsmPrinter {
void emitFunctionHeader(const MachineFunction &MF);
// Necessary for Darwin to print out the apprioriate types of linker stubs
- StringSet<> FnStubs, GVStubs, HiddenGVStubs;
+ StringSet<> FnStubs, GVStubs, HiddenGVStubs, CygMingStubs;
// Necessary for dllexport support
StringSet<> DLLExportedFns, DLLExportedGVs;