This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Remove ConstString::StaticMemorySize
ClosedPublic

Authored by JDevlieghere on Jan 24 2022, 6:25 PM.

Details

Summary

Remove ConstString::StaticMemorySize as it is unused and superseded by GetMemoryStats. It is referenced in a bunch of doc comments but I don't really understand why. My best guess it that the comments were copy-pasted from ConstString::MemorySize() even though it didn't make sense there either. The implementation of StaticMemorySize was being called on the MemoryPool, not on the ConstString itself.

Diff Detail

Event Timeline

JDevlieghere requested review of this revision.Jan 24 2022, 6:25 PM
JDevlieghere created this revision.
JDevlieghere edited the summary of this revision. (Show Details)
kastiglione accepted this revision.Jan 26 2022, 9:03 AM
This revision is now accepted and ready to land.Jan 26 2022, 9:03 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2022, 9:16 AM