[llvm] r210383 - ADT: introduce isWindowsItaniumEnvironment
Saleem Abdulrasool
compnerd at compnerd.org
Fri Jun 6 15:46:18 PDT 2014
Author: compnerd
Date: Fri Jun 6 17:46:18 2014
New Revision: 210383
URL: http://llvm.org/viewvc/llvm-project?rev=210383&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=210383&r1=210382&r2=210383&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Fri Jun 6 17:46:18 2014
@@ -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);
More information about the llvm-commits
mailing list