aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-tapi-diff/DiffEngine.cpp
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@ributzka.de>2022-01-12 14:01:59 -0800
committerJuergen Ributzka <juergen@ributzka.de>2022-01-13 09:23:49 -0800
commit3025c3ededf955fa7f1da7bd7124346c1693f9f2 (patch)
tree673f366a650010764d19cc16f9750a0fbe97b8c7 /llvm/tools/llvm-tapi-diff/DiffEngine.cpp
parentc7aa8b2962b385dd12602ecb88d176529c2f54bc (diff)
downloadllvm-3025c3ededf955fa7f1da7bd7124346c1693f9f2.zip
llvm-3025c3ededf955fa7f1da7bd7124346c1693f9f2.tar.gz
llvm-3025c3ededf955fa7f1da7bd7124346c1693f9f2.tar.bz2
Replace PlatformKind with PlatformType.
The PlatformKind/PlatformType enums contain the same information, which requires them to be kept in-sync. This commit changes over to PlatformType as the sole source of truth, which allows the removal of the redundant PlatformKind. The majority of the changes were in LLD and TextAPI. Reviewed By: cishida Differential Revision: https://reviews.llvm.org/D117163
Diffstat (limited to 'llvm/tools/llvm-tapi-diff/DiffEngine.cpp')
-rw-r--r--llvm/tools/llvm-tapi-diff/DiffEngine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-tapi-diff/DiffEngine.cpp b/llvm/tools/llvm-tapi-diff/DiffEngine.cpp
index ff60d52..45a1f78 100644
--- a/llvm/tools/llvm-tapi-diff/DiffEngine.cpp
+++ b/llvm/tools/llvm-tapi-diff/DiffEngine.cpp
@@ -94,8 +94,7 @@ std::string SymScalar::stringifySymbolFlag(MachO::SymbolFlags Flag) {
void SymScalar::print(raw_ostream &OS, std::string Indent, MachO::Target Targ) {
if (Val->getKind() == MachO::SymbolKind::ObjectiveCClass) {
- if (Targ.Arch == MachO::AK_i386 &&
- Targ.Platform == MachO::PlatformKind::macOS) {
+ if (Targ.Arch == MachO::AK_i386 && Targ.Platform == MachO::PLATFORM_MACOS) {
OS << Indent << "\t\t" << ((Order == lhs) ? "< " : "> ")
<< ObjC1ClassNamePrefix << Val->getName()
<< getFlagString(Val->getFlags()) << "\n";