diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-21 17:51:23 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-21 17:51:23 +0900 |
| commit | 54aae9d72a12ae8af93ba35d00a3817e3105dcce (patch) | |
| tree | fcd8a264d970c0060c9ee5070e845fe446b6fce2 /internal/rosa/package/llvm/add-rosa-vendor.patch | |
| parent | 58646f8ea56d2b2093891e5265225e0c100104f6 (diff) | |
internal/rosa/package: migrate llvm patches
LLVM itself is unlikely to ever be migrated due to complexity of the bootstrap, so migrate patches instead.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/llvm/add-rosa-vendor.patch')
| -rw-r--r-- | internal/rosa/package/llvm/add-rosa-vendor.patch | 32 |
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) |
