forked from OSchip/llvm-project
ADT: correctly report isMSVCEnvironment for windows itanium
The itanium environment on Windows uses MSVC and is a MSVC environment. Report this correctly. llvm-svn: 222180
This commit is contained in:
parent
b7698745e9
commit
76f2c77070
|
@ -371,6 +371,7 @@ public:
|
|||
bool isWindowsMSVCEnvironment() const {
|
||||
return getOS() == Triple::Win32 &&
|
||||
(getEnvironment() == Triple::UnknownEnvironment ||
|
||||
getEnvironment() == Triple::Itanium ||
|
||||
getEnvironment() == Triple::MSVC);
|
||||
}
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ static MCAsmInfo *createARMMCAsmInfo(const MCRegisterInfo &MRI, StringRef TT) {
|
|||
MAI = new ARMMCAsmInfoDarwin(TT);
|
||||
else if (TheTriple.isWindowsItaniumEnvironment())
|
||||
MAI = new ARMCOFFMCAsmInfoGNU();
|
||||
else if (TheTriple.isWindowsMSVCEnvironment())
|
||||
else if (TheTriple.isKnownWindowsMSVCEnvironment())
|
||||
MAI = new ARMCOFFMCAsmInfoMicrosoft();
|
||||
else
|
||||
MAI = new ARMELFMCAsmInfo(TT);
|
||||
|
|
|
@ -270,7 +270,7 @@ static MCAsmInfo *createX86MCAsmInfo(const MCRegisterInfo &MRI, StringRef TT) {
|
|||
} else if (TheTriple.isOSBinFormatELF()) {
|
||||
// Force the use of an ELF container.
|
||||
MAI = new X86ELFMCAsmInfo(TheTriple);
|
||||
} else if (TheTriple.isWindowsMSVCEnvironment()) {
|
||||
} else if (TheTriple.isKnownWindowsMSVCEnvironment()) {
|
||||
MAI = new X86MCAsmInfoMicrosoft(TheTriple);
|
||||
} else if (TheTriple.isOSCygMing() ||
|
||||
TheTriple.isWindowsItaniumEnvironment()) {
|
||||
|
|
Loading…
Reference in New Issue