Index: include/llvm/ADT/Triple.h =================================================================== --- include/llvm/ADT/Triple.h +++ include/llvm/ADT/Triple.h @@ -323,6 +323,11 @@ return getOS() == Triple::Win32 || isOSCygMing(); } + /// isOSWindows - Is this a "Windows" OS targeting a "MSVCRT.dll" environment. + bool isOSWindows() const { + return getOS() == Triple::Win32 || isOSCygMing(); + } + /// \brief Tests whether the OS is NaCl (Native Client) bool isOSNaCl() const { return getOS() == Triple::NaCl;