diff options
author | Cyndy Ishida <cyndy_ishida@apple.com> | 2021-06-03 20:53:06 -0700 |
---|---|---|
committer | Cyndy Ishida <cyndy_ishida@apple.com> | 2021-06-03 21:10:51 -0700 |
commit | 5337c7550d31597f04bcca0c49e1ce62000cc59b (patch) | |
tree | 29135244516abb5ea8b053b39612cd44b7d090b9 /llvm/lib/TextAPI/Platform.cpp | |
parent | d71ff907ef23eaef86ad66ba2d711e4986cd6cb2 (diff) | |
download | llvm-5337c7550d31597f04bcca0c49e1ce62000cc59b.zip llvm-5337c7550d31597f04bcca0c49e1ce62000cc59b.tar.gz llvm-5337c7550d31597f04bcca0c49e1ce62000cc59b.tar.bz2 |
Revert "[llvm] llvm-tapi-diff"
This reverts commit d1d36f7ad2ae82bea8a6fcc40d6c42a72e21f096.
Reverting this patch to investigate linux bot failures
+ fix with author offline
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. |