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

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 12:48:39 PST 2024


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

>From c3ea0f46ba664b668f8d94b77bdb54c0166bf992 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 e891594300c2e4e..94653da226bfd43 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