[NFC] Remove duplicate code in SBTypeCategory
authorJorge Gorbe Moya <jgorbe@google.com>
Fri, 2 Sep 2022 19:59:39 +0000 (12:59 -0700)
committerJorge Gorbe Moya <jgorbe@google.com>
Fri, 2 Sep 2022 23:04:04 +0000 (16:04 -0700)
commitf021cb57ce786f7d5a6c921a19bbcf56709b6ce0
tree55be68925becb6ee43b357fdff681fe8dec024c8
parent81bdb4068d92de50e25e4c214960aa5b9598dbbe
[NFC] Remove duplicate code in SBTypeCategory

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.
lldb/source/API/SBTypeCategory.cpp