diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-06 22:46:18 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-06 22:46:18 +0000 |
commit | 6c862ed02b5ca7ca16ab1e5fef3353902cd27209 (patch) | |
tree | d2e5c70d2356a2e2b143e2ba6cbaeeee00ff76c1 | |
parent | 8ef9d22f5bc501d5286e4087828f3dc0199b38f1 (diff) | |
download | llvm-6c862ed02b5ca7ca16ab1e5fef3353902cd27209.tar.gz llvm-6c862ed02b5ca7ca16ab1e5fef3353902cd27209.tar.bz2 llvm-6c862ed02b5ca7ca16ab1e5fef3353902cd27209.tar.xz |
ADT: introduce isWindowsItaniumEnvironment
Add an isWindowsItaniumEnvironment function to Triple to mirror the other
Windows environments. This is simply a utility function to check if we are
targeting windows-itanium rather than windows-msvc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210383 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/Triple.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 95f3380b36..a10bc734da 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -350,6 +350,10 @@ public: return getOS() == Triple::Win32 && getEnvironment() == Triple::MSVC; } + bool isWindowsItaniumEnvironment() const { + return getOS() == Triple::Win32 && getEnvironment() == Triple::Itanium; + } + bool isWindowsCygwinEnvironment() const { return getOS() == Triple::Cygwin || (getOS() == Triple::Win32 && getEnvironment() == Triple::Cygnus); |