This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFCI] Remove StructuredData::Dictionary::GetValueForKeyAsString overloads involving ConstString
ClosedPublic

Authored by bulbazord on Jun 9 2023, 5:10 PM.

Details

Summary

In an effort to keep the ConstString StringPool small, I plan on
removing use of ConstString in StructuredData. The only class that
really uses it is StructuredData::Dictionary.

This one was fairly easy to remove, I plan on removing the others in
follow-up changes.

Diff Detail

Event Timeline

bulbazord created this revision.Jun 9 2023, 5:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2023, 5:10 PM
bulbazord requested review of this revision.Jun 9 2023, 5:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2023, 5:10 PM
mib accepted this revision.Jun 9 2023, 6:54 PM

I thought StructuredData::String used a ConstString for storage but it actually uses a std::string instead. Makes sense to remove this then. LGTM!

This revision is now accepted and ready to land.Jun 9 2023, 6:54 PM