This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFCI] Remove unneeded ConstString constructions for OptionValueProperties::AppendProperty
ClosedPublic

Authored by bulbazord on Jun 23 2023, 5:43 PM.

Details

Summary

I removed ConstString from OptionValueProperties in 643ba926c1f6, but
there are a few call sites that still create a ConstString as an
argument. I did not catch these initially because ConstString has an
implicit conversion method to StringRef.

Diff Detail

Event Timeline

bulbazord created this revision.Jun 23 2023, 5:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2023, 5:43 PM
bulbazord requested review of this revision.Jun 23 2023, 5:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2023, 5:43 PM
This revision is now accepted and ready to land.Jun 23 2023, 10:40 PM
mib accepted this revision.Jun 24 2023, 8:36 PM

LGTM! May be removing the implicit conversion method to StringRef would make your unnecessary ConstString removal quest easier 😅