mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 02:16:46 +00:00
Add support for AuroraUX. Patch by evocallaghan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ff4c13668
commit
852cd112ed
@ -49,6 +49,7 @@ public:
|
||||
enum OSType {
|
||||
UnknownOS,
|
||||
|
||||
AuroraUX,
|
||||
Darwin,
|
||||
DragonFly,
|
||||
FreeBSD,
|
||||
|
@ -43,6 +43,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
|
||||
switch (Kind) {
|
||||
case UnknownOS: return "unknown";
|
||||
|
||||
case AuroraUX: return "auroraux";
|
||||
case Darwin: return "darwin";
|
||||
case DragonFly: return "dragonfly";
|
||||
case FreeBSD: return "freebsd";
|
||||
@ -79,7 +80,9 @@ void Triple::Parse() const {
|
||||
Vendor = UnknownVendor;
|
||||
|
||||
std::string OSName = getOSName();
|
||||
if (memcmp(&OSName[0], "darwin", 6) == 0)
|
||||
if (memcmp(&OSName[0], "auroraux", 8) == 0)
|
||||
OS = AuroraUX;
|
||||
else if (memcmp(&OSName[0], "darwin", 6) == 0)
|
||||
OS = Darwin;
|
||||
else if (memcmp(&OSName[0], "dragonfly", 9) == 0)
|
||||
OS = DragonFly;
|
||||
|
Loading…
Reference in New Issue
Block a user