This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Change return type of FileSpec::GetFileNameExtension
ClosedPublic

Authored by bulbazord on Apr 26 2023, 3:04 PM.

Details

Summary

These don't really need to be in ConstStrings. It's nice that comparing
ConstStrings is fast (just a pointer comparison) but the cost of
creating the ConstString usually already includes the cost of doing a
StringRef comparison anyway, so this is just extra work and extra memory
consumption for basically no benefit.

Diff Detail

Event Timeline

bulbazord created this revision.Apr 26 2023, 3:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2023, 3:04 PM
Herald added a subscriber: emaste. · View Herald Transcript
bulbazord requested review of this revision.Apr 26 2023, 3:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2023, 3:04 PM
This revision is now accepted and ready to land.Apr 26 2023, 3:25 PM
This revision was landed with ongoing or failed builds.Apr 26 2023, 3:56 PM
This revision was automatically updated to reflect the committed changes.