From: Saleem Abdulrasool Date: Fri, 6 Jun 2014 22:46:18 +0000 (+0000) Subject: ADT: introduce isWindowsItaniumEnvironment X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6c862ed02b5ca7ca16ab1e5fef3353902cd27209;p=oota-llvm.git 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 --- diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 95f3380b364..a10bc734da2 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);