Patch to make assembly output compatible with mingw compilation (identical
to cygwin)
llvm-svn: 20520
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp
index ce6d26e..c792632 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86AsmPrinter.cpp
@@ -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;