diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-27 22:50:18 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-27 22:50:18 +0000 |
| commit | 1e57f17debf628742e9bb9872f7621dfc4c0b2fa (patch) | |
| tree | 0d1cbcf6dc0a9ccac442ff15e8c734059ef02084 /lib/Basic/TargetInfo.cpp | |
| parent | f07112514c3b063c0f7dca206dce42c2ff3dabbf (diff) | |
| download | clang-1e57f17debf628742e9bb9872f7621dfc4c0b2fa.tar.gz clang-1e57f17debf628742e9bb9872f7621dfc4c0b2fa.tar.bz2 clang-1e57f17debf628742e9bb9872f7621dfc4c0b2fa.tar.xz | |
Use the new Windows environment for target detection
This follows the LLVM change to canonicalise the Windows target triple
spellings. Rather than treating each Windows environment as a single entity,
the environments are now modelled properly as an environment. This is a
mechanical change to convert the triple use to reflect that change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
| -rw-r--r-- | lib/Basic/TargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index e661c66ca0..01eced2093 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -83,7 +83,7 @@ TargetInfo::TargetInfo(const llvm::Triple &T) : TargetOpts(), Triple(T) { ComplexLongDoubleUsesFP2Ret = false; // Set the C++ ABI based on the triple. - TheCXXABI.set(Triple.getOS() == llvm::Triple::Win32 + TheCXXABI.set(Triple.isKnownWindowsMSVCEnvironment() ? TargetCXXABI::Microsoft : TargetCXXABI::GenericItanium); |
