This is an archive of the discontinued LLVM Phabricator instance.

[NFCI] Remove duplicate code in SBTypeCategory
ClosedPublic

Authored by jgorbe on Sep 2 2022, 1:21 PM.

Details

Summary

TypeCategoryImpl has its own implementation of these, so it makes no
sense to have the same logic inlined in SBTypeCategory.

There are other methods in SBTypeCategory that are directly implemented
there, instead of delegating to TypeCategoryImpl (which IMO kinda
defeats the point of having an "opaque" member pointer in the SB type),
but they don't have equivalent implementations in TypeCategoryImpl, so
this patch only picks the low-hanging fruit for now.

Diff Detail

Event Timeline

jgorbe created this revision.Sep 2 2022, 1:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2022, 1:21 PM
jgorbe requested review of this revision.Sep 2 2022, 1:21 PM
rupprecht accepted this revision.Sep 2 2022, 2:46 PM
This revision is now accepted and ready to land.Sep 2 2022, 2:46 PM