[lldb] Add consistency between reading the dynamic and shared cache class info

This adds the consistency I promised in D99315 between how we read the
class info from the Objective-C runtime and the shared cache. (NFC)

Differential revision: https://reviews.llvm.org/D99446

GitOrigin-RevId: 645764f3aae83468ca6f9fbd403ab8cf03c91b5a
2 files changed