[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.cpp
Reid Spencer
reid at x10sys.com
Tue Mar 8 09:02:16 PST 2005
Changes in directory llvm/lib/Target/X86:
X86AsmPrinter.cpp updated: 1.132 -> 1.133
---
Log message:
Patch to make assembly output compatible with mingw compilation (identical
to cygwin)
---
Diffs of the changes: (+3 -2)
X86AsmPrinter.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/X86/X86AsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.132 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.133
--- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.132 Sat Jan 22 21:52:14 2005
+++ llvm/lib/Target/X86/X86AsmPrinter.cpp Tue Mar 8 11:02:05 2005
@@ -84,9 +84,10 @@
forCygwin = false;
const std::string& TT = M.getTargetTriple();
if (TT.length() > 5)
- forCygwin = TT.find("cygwin") != std::string::npos;
+ forCygwin = TT.find("cygwin") != std::string::npos ||
+ TT.find("mingw") != std::string::npos;
else if (TT.empty()) {
-#ifdef __CYGWIN__
+#if defined(__CYGWIN__) || defined(__MINGW32__)
forCygwin = true;
#else
forCygwin = false;
More information about the llvm-commits
mailing list