diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-07-18 14:28:19 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-07-18 14:28:19 +0000 |
| commit | dc6a94135056f03ca47470456bd925256a4992a1 (patch) | |
| tree | 9af11b43e2cf1634d16aa4b2f7a3fc70a7b11c62 | |
| parent | 18bc4fff48f4caa7a3fa0750aa0fbecd3ff1ba93 (diff) | |
| download | bcm5719-llvm-dc6a94135056f03ca47470456bd925256a4992a1.tar.gz bcm5719-llvm-dc6a94135056f03ca47470456bd925256a4992a1.zip | |
Add MIPS Technologies to the vendors in llvm::Triple.
This is a prerequisite for checking for 'mti' and 'img' in a consistent way in
clang. Previously 'img' could use Triple::getVendor() but 'mti' could only use
Triple::getVendorName().
llvm-svn: 213381
| -rw-r--r-- | llvm/include/llvm/ADT/Triple.h | 1 | ||||
| -rw-r--r-- | llvm/lib/Support/Triple.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h index 3d6f12c80e4..b96f1143552 100644 --- a/llvm/include/llvm/ADT/Triple.h +++ b/llvm/include/llvm/ADT/Triple.h @@ -105,6 +105,7 @@ public: Freescale, IBM, ImaginationTechnologies, + MipsTechnologies, NVIDIA, CSR }; diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 25ddb7689d4..714d9e8f296 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -117,6 +117,7 @@ const char *Triple::getVendorTypeName(VendorType Kind) { case Freescale: return "fsl"; case IBM: return "ibm"; case ImaginationTechnologies: return "img"; + case MipsTechnologies: return "mti"; case NVIDIA: return "nvidia"; case CSR: return "csr"; } @@ -298,6 +299,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { .Case("fsl", Triple::Freescale) .Case("ibm", Triple::IBM) .Case("img", Triple::ImaginationTechnologies) + .Case("mti", Triple::MipsTechnologies) .Case("nvidia", Triple::NVIDIA) .Case("csr", Triple::CSR) .Default(Triple::UnknownVendor); |

