ADT: introduce isWindowsItaniumEnvironment
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 6 Jun 2014 22:46:18 +0000 (22:46 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 6 Jun 2014 22:46:18 +0000 (22:46 +0000)
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

include/llvm/ADT/Triple.h

index 95f3380b364e514db7f47b737b2e94df67177dfe..a10bc734da2c36bc666a3edd0c76681d5aebaa00 100644 (file)
@@ -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);