mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
Tidied up target triple OS detection. NFC
Use Triple::isOS*() helper functions where possible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -347,7 +347,7 @@ public:
|
||||
bool isTargetIOS() const { return TargetTriple.isiOS(); }
|
||||
bool isTargetLinux() const { return TargetTriple.isOSLinux(); }
|
||||
bool isTargetNaCl() const { return TargetTriple.isOSNaCl(); }
|
||||
bool isTargetNetBSD() const { return TargetTriple.getOS() == Triple::NetBSD; }
|
||||
bool isTargetNetBSD() const { return TargetTriple.isOSNetBSD(); }
|
||||
bool isTargetWindows() const { return TargetTriple.isOSWindows(); }
|
||||
|
||||
bool isTargetCOFF() const { return TargetTriple.isOSBinFormatCOFF(); }
|
||||
|
||||
Reference in New Issue
Block a user