[PATCH] ADT/Triple: Helper to determine if we are targeting the Windows CRT
David Majnemer
david.majnemer at gmail.com
Tue Aug 20 22:43:15 PDT 2013
Hi rnk, asl, chandlerc,
This support will be utilized in things like clang to help check printf
format specifiers that are only valid when using the VSCRT.
http://llvm-reviews.chandlerc.com/D1455
Files:
include/llvm/ADT/Triple.h
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1455.1.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130820/6d946277/attachment.bin>
More information about the cfe-commits
mailing list