diff options
author | Cyndy Ishida <cyndy_ishida@apple.com> | 2021-06-09 13:46:12 -0700 |
---|---|---|
committer | Cyndy Ishida <cyndy_ishida@apple.com> | 2021-06-09 13:48:09 -0700 |
commit | e7b755ecb1402e83a9af310f4411c0d9047e98be (patch) | |
tree | 9ce0f40f7111c0cc4b45615becc44c082a0d3778 /llvm/lib/TextAPI/Platform.cpp | |
parent | 1899cb7d0eae74cc700d44e1f220a7ce41395ce0 (diff) | |
download | llvm-e7b755ecb1402e83a9af310f4411c0d9047e98be.zip llvm-e7b755ecb1402e83a9af310f4411c0d9047e98be.tar.gz llvm-e7b755ecb1402e83a9af310f4411c0d9047e98be.tar.bz2 |
Revert "Reland "[llvm] llvm-tapi-diff""
This reverts commit 20126c9fd4afe2fe11510becccaa769332da302f.
The sorting fixes failed to have stable output on different platforms.
Diffstat (limited to 'llvm/lib/TextAPI/Platform.cpp')
-rw-r--r-- | llvm/lib/TextAPI/Platform.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/lib/TextAPI/Platform.cpp b/llvm/lib/TextAPI/Platform.cpp index a2ce6d0..038ad9d 100644 --- a/llvm/lib/TextAPI/Platform.cpp +++ b/llvm/lib/TextAPI/Platform.cpp @@ -105,34 +105,5 @@ PlatformKind getPlatformFromName(StringRef Name) { .Default(PlatformKind::unknown); } -std::string getOSAndEnvironmentName(PlatformKind Platform, - std::string Version) { - switch (Platform) { - case PlatformKind::unknown: - return "darwin" + Version; - case PlatformKind::macOS: - return "macos" + Version; - case PlatformKind::iOS: - return "ios" + Version; - case PlatformKind::tvOS: - return "tvos" + Version; - case PlatformKind::watchOS: - return "watchos" + Version; - case PlatformKind::bridgeOS: - return "bridgeos" + Version; - case PlatformKind::macCatalyst: - return "ios" + Version + "-macabi"; - case PlatformKind::iOSSimulator: - return "ios" + Version + "-simulator"; - case PlatformKind::tvOSSimulator: - return "tvos" + Version + "-simulator"; - case PlatformKind::watchOSSimulator: - return "watchos" + Version + "-simulator"; - case PlatformKind::driverKit: - return "driverkit" + Version; - } - llvm_unreachable("Unknown llvm::MachO::PlatformKind enum"); -} - } // end namespace MachO. } // end namespace llvm. |