[llvm] [CodeGen] Resolve TODO: Add DriverKit to mapToPlatformType (PR #78799)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 13:52:16 PST 2024
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/78799
>From d7b7352aad83fc36860db478d4e15b1896d9272d 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