Add Triple::isOSUnknown
Subscribers: aheejin Differential Revision: https://reviews.llvm.org/D39256 llvm-svn: 316524
This commit is contained in:
parent
7bef6da66f
commit
4f00a71af5
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue