forked from OSchip/llvm-project
X86Subtarget.h: Recognize x86_64-cygwin.
In the LLVM side, x86_64-cygwin is almost as same as x86_64-mingw32. llvm-svn: 189436
This commit is contained in:
parent
3accde52db
commit
9ea7c6d463
|
@ -328,14 +328,11 @@ public:
|
||||||
bool isTargetEnvMacho() const { return TargetTriple.isEnvironmentMachO(); }
|
bool isTargetEnvMacho() const { return TargetTriple.isEnvironmentMachO(); }
|
||||||
|
|
||||||
bool isTargetWin64() const {
|
bool isTargetWin64() const {
|
||||||
// FIXME: x86_64-cygwin has not been released yet.
|
|
||||||
return In64BitMode && TargetTriple.isOSWindows();
|
return In64BitMode && TargetTriple.isOSWindows();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isTargetWin32() const {
|
bool isTargetWin32() const {
|
||||||
// FIXME: Cygwin is included for isTargetWin64 -- should it be included
|
return !In64BitMode && (isTargetCygMing() || isTargetWindows());
|
||||||
// here too?
|
|
||||||
return !In64BitMode && (isTargetMingw() || isTargetWindows());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isPICStyleSet() const { return PICStyle != PICStyles::None; }
|
bool isPICStyleSet() const { return PICStyle != PICStyles::None; }
|
||||||
|
|
Loading…
Reference in New Issue