[llvm] [CodeGen] Resolve TODO: Add DriverKit to mapToPlatformType (PR #78799)

via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 10:37:33 PST 2024


https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/78799

>From cdcf9409840bdb29efa43d96e5ca9758aa8ae52b Mon Sep 17 00:00:00 2001
From: Rose <83477269+AtariDreams at users.noreply.github.com>
Date: Fri, 19 Jan 2024 17:25:33 -0500
Subject: [PATCH] [CodeGen] Resolve TODO: Add DriverKit to mapToPlatformType

---
 llvm/lib/TextAPI/Platform.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/llvm/lib/TextAPI/Platform.cpp b/llvm/lib/TextAPI/Platform.cpp
index e891594300c2e4..94653da226bfd4 100644
--- a/llvm/lib/TextAPI/Platform.cpp
+++ b/llvm/lib/TextAPI/Platform.cpp
@@ -49,7 +49,9 @@ PlatformType mapToPlatformType(const Triple &Target) {
   case Triple::WatchOS:
     return Target.isSimulatorEnvironment() ? PLATFORM_WATCHOSSIMULATOR
                                            : PLATFORM_WATCHOS;
-    // TODO: add bridgeOS & driverKit once in llvm::Triple
+  case Triple::DriverKit:
+    return PLATFORM_DRIVERKIT;
+    // TODO: add bridgeOS once in llvm::Triple
   }
 }
 



More information about the llvm-commits mailing list