summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit00658b80fbd002869c6d73a07e8704f5945a3a63 (patch)
tree2a7359fa7802e37e0615eb482fa599677639dc8f /llvm/lib
parentea50620eec9fb93d4b44228880186a806a52e503 (diff)
downloadbcm5719-llvm-00658b80fbd002869c6d73a07e8704f5945a3a63.tar.gz
bcm5719-llvm-00658b80fbd002869c6d73a07e8704f5945a3a63.zip
Patch to make assembly output compatible with mingw compilation (identical
to cygwin) llvm-svn: 20520
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86AsmPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp
index ce6d26e7d02..c7926320bad 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud