[llvm] 1f57800 - [llvm] Handle BridgeOS in Triple::parseOS

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 19 13:51:43 PST 2024


Author: Jonas Devlieghere
Date: 2024-02-19T13:51:35-08:00
New Revision: 1f57800fe6ffc1569520e8cc62a740332300e2fa

URL: https://github.com/llvm/llvm-project/commit/1f57800fe6ffc1569520e8cc62a740332300e2fa
DIFF: https://github.com/llvm/llvm-project/commit/1f57800fe6ffc1569520e8cc62a740332300e2fa.diff

LOG: [llvm] Handle BridgeOS in Triple::parseOS

This fixes the TripleTest unit test.

Added: 
    

Modified: 
    llvm/lib/TargetParser/Triple.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp
index ccdaf768710e19..624679ff507a7f 100644
--- a/llvm/lib/TargetParser/Triple.cpp
+++ b/llvm/lib/TargetParser/Triple.cpp
@@ -638,6 +638,7 @@ static Triple::OSType parseOS(StringRef OSName) {
     .StartsWith("elfiamcu", Triple::ELFIAMCU)
     .StartsWith("tvos", Triple::TvOS)
     .StartsWith("watchos", Triple::WatchOS)
+    .StartsWith("bridgeos", Triple::BridgeOS)
     .StartsWith("driverkit", Triple::DriverKit)
     .StartsWith("xros", Triple::XROS)
     .StartsWith("visionos", Triple::XROS)


        


More information about the llvm-commits mailing list