[libcxxabi] copy back std::string_view patches from LLVM
authorNick Desaulniers <ndesaulniers@google.com>
Wed, 31 May 2023 16:50:35 +0000 (09:50 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Wed, 31 May 2023 18:07:02 +0000 (11:07 -0700)
commit728a45181d7e83bcedc705a5b7f161056c693c83
tree8376eea648bb73bb5efae107a061fcb8622c00b3
parent54ac02dd16c8a8c171ebac06e2448b4601f84f0e
[libcxxabi] copy back std::string_view patches from LLVM

I made a series of changes to LLVM's demangle in:
- D148348
- D148353
- D148363
- D148375
and so did Fangrui in 3ece37b3fa2c and Ashay in D149061.

I didn't notice the banner about there being two copies of this in tree
and was modifying the downstream versions. Copy these changes back to
the upstream version. Oops!

Reviewed By: MaskRay, #libc_abi, ldionne, phosek

Differential Revision: https://reviews.llvm.org/D148566
libcxxabi/src/cxa_demangle.cpp
libcxxabi/src/demangle/ItaniumDemangle.h
libcxxabi/src/demangle/StringView.h
libcxxabi/src/demangle/Utility.h