This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFCI] Remove unneeded ConstString conversions
ClosedPublic

Authored by bulbazord on Aug 30 2023, 4:25 PM.

Details

Summary

ConstString can be implicitly converted into a llvm::StringRef. This is
very useful in many places, but it also hides places where we are
creating a ConstString only to use it as a StringRef for the entire
lifespan of the ConstString object.

I locally removed the implicit conversion and found some of the places we
were doing this.

Diff Detail

Event Timeline

bulbazord created this revision.Aug 30 2023, 4:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 30 2023, 4:25 PM
bulbazord requested review of this revision.Aug 30 2023, 4:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 30 2023, 4:25 PM
This revision is now accepted and ready to land.Aug 30 2023, 5:28 PM
This revision was landed with ongoing or failed builds.Aug 31 2023, 11:34 AM
This revision was automatically updated to reflect the committed changes.