[StringView] remove consumeFront
authorNick Desaulniers <ndesaulniers@google.com>
Fri, 14 Apr 2023 22:27:56 +0000 (15:27 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Fri, 14 Apr 2023 22:34:24 +0000 (15:34 -0700)
commit5e53e1bbc34fe563b740364d7329ca0bd123f9ff
treeb6c7aba66bcd611a0619df3c748524c133ca8de4
parentcdf71d2ccd84ed7b8891924b04d1603f344038e9
[StringView] remove consumeFront

Towards converting our use of llvm::StringView to std::string_view,
remove a method that std::string_view doesn't have.

This could be moved to the nascent llvm/ADT/StringViewExtras.h, but the
use is highly localized to one TU. Move this to be a static function
there.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D148375
llvm/include/llvm/Demangle/ItaniumDemangle.h
llvm/include/llvm/Demangle/StringView.h
llvm/lib/Demangle/MicrosoftDemangle.cpp
llvm/lib/Demangle/RustDemangle.cpp