[llvm-commits] [llvm] r75105 - in /llvm/trunk/lib/Target/X86/AsmPrinter: X86ATTAsmPrinter.cpp X86ATTAsmPrinter.h
Chris Lattner
sabre at nondot.org
Wed Jul 8 22:09:42 PDT 2009
Author: lattner
Date: Thu Jul 9 00:09:24 2009
New Revision: 75105
URL: http://llvm.org/viewvc/llvm-project?rev=75105&view=rev
Log:
make cygwin use its own stubs set, instead of overloading a darwin one.
Modified:
llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp?rev=75105&r1=75104&r2=75105&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Thu Jul 9 00:09:24 2009
@@ -351,11 +351,10 @@
// 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 @@
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
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h?rev=75105&r1=75104&r2=75105&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h Thu Jul 9 00:09:24 2009
@@ -199,7 +199,7 @@
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;
More information about the llvm-commits
mailing list