aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Demangle/ItaniumDemangle.cpp
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2023-04-20 11:08:04 -0700
committerNick Desaulniers <ndesaulniers@google.com>2023-04-20 11:22:20 -0700
commit7c59e8001a3b66be545a890a26ad8a24a6c9fe4b (patch)
treecd7affd3ac9ace58a50ce551df4a55e98513f781 /llvm/lib/Demangle/ItaniumDemangle.cpp
parent094689fe10db0a7149ff8f71f265822cd8500cb8 (diff)
downloadllvm-7c59e8001a3b66be545a890a26ad8a24a6c9fe4b.zip
llvm-7c59e8001a3b66be545a890a26ad8a24a6c9fe4b.tar.gz
llvm-7c59e8001a3b66be545a890a26ad8a24a6c9fe4b.tar.bz2
Reland: [Demangle] replace use of llvm::StringView w/ std::string_view
This reverts commit d81cdb49d74064e88843733e7da92db865943509. This refactoring was waiting on converting LLVM to C++17. Leave StringView.h and cleanup around for subsequent cleanup. Additional fixes for missing std::string_view conversions for MSVC. Reviewed By: MaskRay, DavidSpickett, ayzhao Differential Revision: https://reviews.llvm.org/D148546
Diffstat (limited to 'llvm/lib/Demangle/ItaniumDemangle.cpp')
-rw-r--r--llvm/lib/Demangle/ItaniumDemangle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Demangle/ItaniumDemangle.cpp b/llvm/lib/Demangle/ItaniumDemangle.cpp
index 9b646ea..7a7bcd3 100644
--- a/llvm/lib/Demangle/ItaniumDemangle.cpp
+++ b/llvm/lib/Demangle/ItaniumDemangle.cpp
@@ -78,8 +78,8 @@ struct DumpVisitor {
}
void printStr(const char *S) { fprintf(stderr, "%s", S); }
- void print(StringView SV) {
- fprintf(stderr, "\"%.*s\"", (int)SV.size(), SV.begin());
+ void print(std::string_view SV) {
+ fprintf(stderr, "\"%.*s\"", (int)SV.size(), &*SV.begin());
}
void print(const Node *N) {
if (N)