aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-03-08 17:02:05 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-03-08 17:02:05 +0000
commitd632f4977eb5d80191dad3beaacaa15a17f40c3b (patch)
tree094afa7aff4c72f6f271949b517f02a63fef036e
parentdbf69f1992a3ee2b66071fcc314d39092f378c18 (diff)
Patch to make assembly output compatible with mingw compilation (identical
to cygwin) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20520 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index ce6d26e7d0..c7926320ba 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -84,9 +84,10 @@ bool X86SharedAsmPrinter::doInitialization(Module& M) {
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;