mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 22:50:47 +00:00
ADT/Triple: Helper to determine if we are targeting the Windows CRT
Summary: This support will be utilized in things like clang to help check printf format specifiers that are only valid when using the VSCRT. Reviewers: rnk, asl, chandlerc Reviewed By: chandlerc CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1455 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188935 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
296ca41b2d
commit
79ef34d180
@ -318,6 +318,11 @@ public:
|
||||
return getOS() == Triple::Cygwin || getOS() == Triple::MinGW32;
|
||||
}
|
||||
|
||||
/// \brief Is this a "Windows" OS targeting a "MSVCRT.dll" environment.
|
||||
bool isOSMSVCRT() const {
|
||||
return getOS() == Triple::Win32 || getOS() == Triple::MinGW32;
|
||||
}
|
||||
|
||||
/// isOSWindows - Is this a "Windows" OS.
|
||||
bool isOSWindows() const {
|
||||
return getOS() == Triple::Win32 || isOSCygMing();
|
||||
|
Loading…
Reference in New Issue
Block a user