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 | |
| parent | d71ff907ef23eaef86ad66ba2d711e4986cd6cb2 (diff) | |
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')
| -rw-r--r-- | llvm/lib/TextAPI/Platform.cpp | 29 | ||||
| -rw-r--r-- | llvm/lib/TextAPI/Target.cpp | 6 |
2 files changed, 0 insertions, 35 deletions
diff --git a/llvm/lib/TextAPI/Platform.cpp b/llvm/lib/TextAPI/Platform.cpp index a2ce6d0cac86..038ad9d4e0e0 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. diff --git a/llvm/lib/TextAPI/Target.cpp b/llvm/lib/TextAPI/Target.cpp index 35fe1bf65e6f..4c33a5883247 100644 --- a/llvm/lib/TextAPI/Target.cpp +++ b/llvm/lib/TextAPI/Target.cpp @@ -72,11 +72,5 @@ ArchitectureSet mapToArchitectureSet(ArrayRef<Target> Targets) { return Result; } -std::string getTargetTripleName(const Target &Targ) { - return (getArchitectureName(Targ.Arch) + "-apple-" + - getOSAndEnvironmentName(Targ.Platform)) - .str(); -} - } // end namespace MachO. } // end namespace llvm. |
