aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/llvm/add-rosa-vendor.patch
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/package/llvm/add-rosa-vendor.patch')
-rw-r--r--internal/rosa/package/llvm/add-rosa-vendor.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/internal/rosa/package/llvm/add-rosa-vendor.patch b/internal/rosa/package/llvm/add-rosa-vendor.patch
new file mode 100644
index 00000000..919403a3
--- /dev/null
+++ b/internal/rosa/package/llvm/add-rosa-vendor.patch
@@ -0,0 +1,32 @@
+diff --git a/llvm/include/llvm/TargetParser/Triple.h b/llvm/include/llvm/TargetParser/Triple.h
+index 9c83abeeb3b1..5acfe5836a23 100644
+--- a/llvm/include/llvm/TargetParser/Triple.h
++++ b/llvm/include/llvm/TargetParser/Triple.h
+@@ -190,6 +190,7 @@ public:
+
+ Apple,
+ PC,
++ Rosa,
+ SCEI,
+ Freescale,
+ IBM,
+diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp
+index a4f9dd42c0fe..cb5a12387034 100644
+--- a/llvm/lib/TargetParser/Triple.cpp
++++ b/llvm/lib/TargetParser/Triple.cpp
+@@ -279,6 +279,7 @@ StringRef Triple::getVendorTypeName(VendorType Kind) {
+ case NVIDIA: return "nvidia";
+ case OpenEmbedded: return "oe";
+ case PC: return "pc";
++ case Rosa: return "rosa";
+ case SCEI: return "scei";
+ case SUSE: return "suse";
+ case Meta:
+@@ -689,6 +690,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
+ return StringSwitch<Triple::VendorType>(VendorName)
+ .Case("apple", Triple::Apple)
+ .Case("pc", Triple::PC)
++ .Case("rosa", Triple::Rosa)
+ .Case("scei", Triple::SCEI)
+ .Case("sie", Triple::SCEI)
+ .Case("fsl", Triple::Freescale)