[llvm] r212626 - Add Imagination Technologies to the vendors in llvm::Triple
Daniel Sanders
daniel.sanders at imgtec.com
Wed Jul 9 09:03:10 PDT 2014
Author: dsanders
Date: Wed Jul 9 11:03:10 2014
New Revision: 212626
URL: http://llvm.org/viewvc/llvm-project?rev=212626&view=rev
Log:
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
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
llvm/trunk/lib/Support/Triple.cpp
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=212626&r1=212625&r2=212626&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Wed Jul 9 11:03:10 2014
@@ -88,6 +88,7 @@ public:
BGQ,
Freescale,
IBM,
+ ImaginationTechnologies,
NVIDIA
};
enum OSType {
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=212626&r1=212625&r2=212626&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Wed Jul 9 11:03:10 2014
@@ -115,6 +115,7 @@ const char *Triple::getVendorTypeName(Ve
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(St
.Case("bgq", Triple::BGQ)
.Case("fsl", Triple::Freescale)
.Case("ibm", Triple::IBM)
+ .Case("img", Triple::ImaginationTechnologies)
.Case("nvidia", Triple::NVIDIA)
.Default(Triple::UnknownVendor);
}
More information about the llvm-commits
mailing list