From 6a6556695e2e3c983a95d6dd78d601f857b861ab Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Wed, 9 Jul 2014 16:03:10 +0000 Subject: [PATCH] Add Imagination Technologies to the vendors in llvm::Triple Summary: This is a pre-requisite for supporting the mips-img-linux-gnu triple in clang. Differential Revision: http://reviews.llvm.org/D4435 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212626 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/Triple.h | 1 + lib/Support/Triple.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index a10bc734da2..a2e841162c6 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -88,6 +88,7 @@ public: BGQ, Freescale, IBM, + ImaginationTechnologies, NVIDIA }; enum OSType { diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 8f3cf717733..445502d3320 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -115,6 +115,7 @@ const char *Triple::getVendorTypeName(VendorType Kind) { case BGQ: return "bgq"; case Freescale: return "fsl"; case IBM: return "ibm"; + case ImaginationTechnologies: return "img"; case NVIDIA: return "nvidia"; } @@ -292,6 +293,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { .Case("bgq", Triple::BGQ) .Case("fsl", Triple::Freescale) .Case("ibm", Triple::IBM) + .Case("img", Triple::ImaginationTechnologies) .Case("nvidia", Triple::NVIDIA) .Default(Triple::UnknownVendor); }