projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbf69f1
)
Patch to make assembly output compatible with mingw compilation (identical
author
Reid Spencer
<rspencer@reidspencer.com>
Tue, 8 Mar 2005 17:02:05 +0000
(17:02 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Tue, 8 Mar 2005 17:02:05 +0000
(17:02 +0000)
to cygwin)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20520
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86AsmPrinter.cpp
b/lib/Target/X86/X86AsmPrinter.cpp
index ce6d26e7d025a6b3481547c299253e2f49874fa4..c7926320badc35c95d02a7898d509ad9975a18a1 100644
(file)
--- 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()) {
-#if
def __CYGWIN__
+#if
defined(__CYGWIN__) || defined(__MINGW32__)
forCygwin = true;
#else
forCygwin = false;