Skip to content

Commit e63e536

Browse files
committed
[TextAPI] add osx to possible string to platform input
1 parent c731bdd commit e63e536

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/TextAPI/Platform.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ StringRef getPlatformName(PlatformType Platform) {
9090

9191
PlatformType getPlatformFromName(StringRef Name) {
9292
return StringSwitch<PlatformType>(Name)
93+
.Case("osx", PLATFORM_MACOS)
9394
.Case("macos", PLATFORM_MACOS)
9495
.Case("ios", PLATFORM_IOS)
9596
.Case("tvos", PLATFORM_TVOS)

0 commit comments

Comments
 (0)