diff options
author | Duncan Sands <baldrick@free.fr> | 2009-06-19 14:40:01 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-06-19 14:40:01 +0000 |
commit | 90325bdb31f1f7fc443cbd3d5ff38d77fc434f93 (patch) | |
tree | 6e94af2c3edc020186472a0d3864eb5d8e971761 /lib/Support | |
parent | 7d9ea9410b263da71703469bcc1378025df6377b (diff) | |
download | external_llvm-90325bdb31f1f7fc443cbd3d5ff38d77fc434f93.zip external_llvm-90325bdb31f1f7fc443cbd3d5ff38d77fc434f93.tar.gz external_llvm-90325bdb31f1f7fc443cbd3d5ff38d77fc434f93.tar.bz2 |
Add support for AuroraUX. Patch by evocallaghan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Triple.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index e8cf69d..dd5c3d6 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -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; |