diff options
author | Fangrui Song <i@maskray.me> | 2023-04-14 18:42:11 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-04-14 18:42:11 -0700 |
commit | d81cdb49d74064e88843733e7da92db865943509 (patch) | |
tree | 3bf38b8cc02f5c1b183c9ff8ea61cf8af8e153c2 /lldb | |
parent | d4de7c2e1e7954ea03545f1551fda9f6bb9387cf (diff) | |
download | llvm-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 'lldb')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp | 3 | ||||
-rw-r--r-- | lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp index 71e4d56..1e9e1be 100644 --- a/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp +++ b/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp @@ -25,7 +25,6 @@ #include "UdtRecordCompleter.h" #include "SymbolFileNativePDB.h" #include <optional> -#include <string_view> using namespace lldb_private; using namespace lldb_private::npdb; @@ -175,7 +174,7 @@ PdbAstBuilder::CreateDeclInfoForType(const TagRecord &record, TypeIndex ti) { return CreateDeclInfoForUndecoratedName(record.Name); llvm::ms_demangle::Demangler demangler; - std::string_view sv(record.UniqueName.begin(), record.UniqueName.size()); + StringView sv(record.UniqueName.begin(), record.UniqueName.size()); llvm::ms_demangle::TagTypeNode *ttn = demangler.parseTagUniqueName(sv); if (demangler.Error) return {m_clang.GetTranslationUnitDecl(), std::string(record.UniqueName)}; diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp index 8c91033b..01756e4 100644 --- a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp +++ b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp @@ -57,7 +57,6 @@ #include "PdbUtil.h" #include "UdtRecordCompleter.h" #include <optional> -#include <string_view> using namespace lldb; using namespace lldb_private; @@ -632,7 +631,7 @@ static std::string GetUnqualifiedTypeName(const TagRecord &record) { } llvm::ms_demangle::Demangler demangler; - std::string_view sv(record.UniqueName.begin(), record.UniqueName.size()); + StringView sv(record.UniqueName.begin(), record.UniqueName.size()); llvm::ms_demangle::TagTypeNode *ttn = demangler.parseTagUniqueName(sv); if (demangler.Error) return std::string(record.Name); |