[Lldb-commits] [lldb] r350652 - [PdbAstBuilder] Remove unused functions
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 8 12:58:54 PST 2019
Author: jdevlieghere
Date: Tue Jan 8 12:58:54 2019
New Revision: 350652
URL: http://llvm.org/viewvc/llvm-project?rev=350652&view=rev
Log:
[PdbAstBuilder] Remove unused functions
PdbAstBuilder.cpp:273:20: warning: unused function 'GetParentUniqueName' [-Wunused-function]
PdbAstBuilder.cpp:267:13: warning: unused function 'IsUniqueNameEnumTag' [-Wunused-function]
Modified:
lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp?rev=350652&r1=350651&r2=350652&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp Tue Jan 8 12:58:54 2019
@@ -264,23 +264,6 @@ PdbAstBuilder::CreateDeclInfoForType(con
return {context, uname};
}
-static bool IsUniqueNameEnumTag(llvm::StringRef unique_name) {
- if (unique_name.size() < 4)
- return false;
- return unique_name[3] == 'W';
-}
-
-static std::string GetParentUniqueName(llvm::StringRef unique_name) {
- if (unique_name.size() < 4)
- return unique_name;
- size_t start = IsUniqueNameEnumTag(unique_name) ? 5 : 4;
- size_t end = unique_name.find('@');
- if (end == llvm::StringRef::npos)
- return unique_name;
- std::string result = unique_name.str();
- return result.erase(start, end - start + 1);
-}
-
void PdbAstBuilder::BuildParentMap() {
LazyRandomTypeCollection &types = m_index.tpi().typeCollection();
More information about the lldb-commits
mailing list