[llvm] [CodeGen] Resolve TODO: Add Driverkit to platform type (PR #78799)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 14:26:51 PST 2024


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

None

>From dded4afd8da787834218346c4cd95b96c4382962 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 platform type

---
 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