aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Demangle/ItaniumDemangle.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-04-14 18:42:11 -0700
committerFangrui Song <i@maskray.me>2023-04-14 18:42:11 -0700
commitd81cdb49d74064e88843733e7da92db865943509 (patch)
tree3bf38b8cc02f5c1b183c9ff8ea61cf8af8e153c2 /llvm/lib/Demangle/ItaniumDemangle.cpp
parentd4de7c2e1e7954ea03545f1551fda9f6bb9387cf (diff)
downloadllvm-d81cdb49d74064e88843733e7da92db865943509.zip
llvm-d81cdb49d74064e88843733e7da92db865943509.tar.gz
llvm-d81cdb49d74064e88843733e7da92db865943509.tar.bz2
Revert D148384 "[Demangle] replace use of llvm::StringView w/ std::string_view"
This reverts commit 3e559509b426b6aae735a7f57dbdaed1041d2622 and e0c4ffa796b553fa78c638a9584c05ac21fe07d5. This still breaks Windows builds. In addition, `#include <llvm/ADT/StringViewExtras.h>` in llvm/include/llvm/Demangle/ItaniumDemangle.h is a library layering violation (LLVMDemangle is the lowest LLVM library and cannot depend on LLVMSupport).
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 7a7bcd3..9b646ea 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(std::string_view SV) {
- fprintf(stderr, "\"%.*s\"", (int)SV.size(), &*SV.begin());
+ void print(StringView SV) {
+ fprintf(stderr, "\"%.*s\"", (int)SV.size(), SV.begin());
}
void print(const Node *N) {
if (N)