This is an archive of the discontinued LLVM Phabricator instance.

Replace PlatformKind with PlatformType.
ClosedPublic

Authored by ributzka on Jan 12 2022, 3:01 PM.

Details

Summary

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.

Diff Detail

Event Timeline

ributzka created this revision.Jan 12 2022, 3:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2022, 3:01 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a subscriber: hiraditya. · View Herald Transcript
ributzka requested review of this revision.Jan 12 2022, 3:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2022, 3:01 PM
int3 added a subscriber: int3.Jan 12 2022, 5:54 PM

Nice! The two enums always seemed kind of redundant to me, so thanks for cleaning it up :)

The LLD changes lgtm, I'll let someone else look at the TextAPI ones

cishida accepted this revision.Jan 12 2022, 5:56 PM
This revision is now accepted and ready to land.Jan 12 2022, 5:56 PM

The unit test failure on Windows seems unrelated, because I have seen it in a previous pre-merge check too. Furthermore, this should be a NFC.

This revision was landed with ongoing or failed builds.Jan 13 2022, 9:24 AM
This revision was automatically updated to reflect the committed changes.