From 3025c3ededf955fa7f1da7bd7124346c1693f9f2 Mon Sep 17 00:00:00 2001 From: Juergen Ributzka Date: Wed, 12 Jan 2022 14:01:59 -0800 Subject: 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 --- llvm/tools/llvm-tapi-diff/DiffEngine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/tools/llvm-tapi-diff/DiffEngine.cpp') 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"; -- cgit v1.1