Replace PlatformKind with PlatformType.
authorJuergen Ributzka <juergen@ributzka.de>
Wed, 12 Jan 2022 22:01:59 +0000 (14:01 -0800)
committerJuergen Ributzka <juergen@ributzka.de>
Thu, 13 Jan 2022 17:23:49 +0000 (09:23 -0800)
commit3025c3ededf955fa7f1da7bd7124346c1693f9f2
tree673f366a650010764d19cc16f9750a0fbe97b8c7
parentc7aa8b2962b385dd12602ecb88d176529c2f54bc
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
22 files changed:
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Driver.h
lld/MachO/InputFiles.cpp
lld/MachO/SyntheticSections.cpp
lld/MachO/Writer.cpp
llvm/include/llvm/BinaryFormat/MachO.h
llvm/include/llvm/TextAPI/Platform.h
llvm/include/llvm/TextAPI/Target.h
llvm/lib/MC/MCAsmStreamer.cpp
llvm/lib/MC/MCParser/DarwinAsmParser.cpp
llvm/lib/Object/TapiFile.cpp
llvm/lib/TextAPI/Platform.cpp
llvm/lib/TextAPI/Target.cpp
llvm/lib/TextAPI/TextStub.cpp
llvm/lib/TextAPI/TextStubCommon.cpp
llvm/tools/llvm-ifs/llvm-ifs.cpp
llvm/tools/llvm-tapi-diff/DiffEngine.cpp
llvm/unittests/TextAPI/TextStubV1Tests.cpp
llvm/unittests/TextAPI/TextStubV2Tests.cpp
llvm/unittests/TextAPI/TextStubV3Tests.cpp
llvm/unittests/TextAPI/TextStubV4Tests.cpp