[llvm][TextAPI] add driverkit as supported platform for older tbd
authorCyndy Ishida <cyndy_ishida@apple.com>
Mon, 19 Sep 2022 22:05:20 +0000 (15:05 -0700)
committerCyndy Ishida <cyndy_ishida@apple.com>
Mon, 19 Sep 2022 22:08:29 +0000 (15:08 -0700)
versions

 It looks like being able to write it was added, but missed the ability
  to read it.

llvm/lib/TextAPI/TextStubCommon.cpp

index 0a03f42..01a9007 100644 (file)
@@ -112,6 +112,7 @@ StringRef ScalarTraits<PlatformSet>::input(StringRef Scalar, void *IO,
                       .Case("tvos", PLATFORM_TVOS)
                       .Case("bridgeos", PLATFORM_BRIDGEOS)
                       .Case("iosmac", PLATFORM_MACCATALYST)
+                      .Case("driverkit", PLATFORM_DRIVERKIT)
                       .Default(PLATFORM_UNKNOWN);
 
   if (Platform == PLATFORM_MACCATALYST)