Add Triple::isOSUnknown

Subscribers: aheejin

Differential Revision: https://reviews.llvm.org/D39256

llvm-svn: 316524
This commit is contained in:
Sam Clegg 2017-10-24 22:48:19 +00:00
parent 7bef6da66f
commit 4f00a71af5
1 changed files with 2 additions and 0 deletions

View File

@ -501,6 +501,8 @@ public:
return getOS() == Triple::ELFIAMCU;
}
bool isOSUnknown() const { return getOS() == Triple::UnknownOS; }
bool isGNUEnvironment() const {
EnvironmentType Env = getEnvironment();
return Env == Triple::GNU || Env == Triple::GNUABIN32 ||