This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFCI] Change return type of REPL::GetSourceFileBasename
ClosedPublic

Authored by bulbazord on Jun 1 2023, 6:39 PM.

Details

Summary

These don't really need to be in the ConstString StringPool. I've
changed the return type to StringRef because on llvm.org and downstream
in the swift fork, this returns a constant value. We could change it to
return a std::string or something else if it needs to be able to change
between calls.

Diff Detail

Event Timeline

bulbazord created this revision.Jun 1 2023, 6:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 6:39 PM
bulbazord requested review of this revision.Jun 1 2023, 6:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 6:39 PM
wallace accepted this revision.Jun 1 2023, 6:43 PM

LGTM. It also works with the mojo REPL.

This revision is now accepted and ready to land.Jun 1 2023, 6:43 PM
mib accepted this revision.Jun 2 2023, 12:19 AM