This is an archive of the discontinued LLVM Phabricator instance.

[RustDemangle] remove StringView::dropFront
ClosedPublic

Authored by nickdesaulniers on Apr 13 2023, 2:41 PM.

Details

Summary

Toward the goal of replacing llvm::StringView with std::string_view,
first replacing users of llvm::StringView::dropFront, this case in the
Rust demangling scheme seemed worth its own commit+review.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 13 2023, 2:42 PM
nickdesaulniers requested review of this revision.Apr 13 2023, 2:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 13 2023, 2:42 PM

s/StringView/StringRef/

s/StringView/StringRef/

No; I mean to replace StringView entirely.

  • get rid of suffix entirely, skip substring if there's no .
MaskRay accepted this revision.Apr 13 2023, 2:55 PM

OK. I didn't notice there is a StringView inside LLVMDemangle :(

This revision is now accepted and ready to land.Apr 13 2023, 2:55 PM
erichkeane accepted this revision.Apr 14 2023, 5:49 AM
This revision was automatically updated to reflect the committed changes.