summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2019-01-14 22:41:00 +0000
committerZachary Turner <zturner@google.com>2019-01-14 22:41:00 +0000
commitc0a246afbe03b8f1d52e06267e9c2a5f2c4521ff (patch)
tree47743cc3bc117058ce7d9a4160087db952d28897 /lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
parentffc1b8fd7653cdc61440bc0be5d3735146dd5015 (diff)
downloadbcm5719-llvm-c0a246afbe03b8f1d52e06267e9c2a5f2c4521ff.tar.gz
bcm5719-llvm-c0a246afbe03b8f1d52e06267e9c2a5f2c4521ff.zip
[SymbolFile] Remove the SymbolContext parameter from FindNamespace.
Every callsite was passing an empty SymbolContext, so this parameter had no effect. Inside the DWARF implementation of this function, however, there was one codepath that checked members of the SymbolContext. Since no call-sites actually ever used this functionality, it was essentially dead code, so I've deleted this code path as well. llvm-svn: 351132
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
index 59d7fe01c24..087798bea9a 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
@@ -802,10 +802,8 @@ void ClangASTSource::FindExternalVisibleDecls(
SymbolVendor *symbol_vendor = module_sp->GetSymbolVendor();
if (symbol_vendor) {
- SymbolContext null_sc;
-
found_namespace_decl =
- symbol_vendor->FindNamespace(null_sc, name, &namespace_decl);
+ symbol_vendor->FindNamespace(name, &namespace_decl);
if (found_namespace_decl) {
context.m_namespace_map->push_back(
@@ -835,10 +833,8 @@ void ClangASTSource::FindExternalVisibleDecls(
if (!symbol_vendor)
continue;
- SymbolContext null_sc;
-
found_namespace_decl =
- symbol_vendor->FindNamespace(null_sc, name, &namespace_decl);
+ symbol_vendor->FindNamespace(name, &namespace_decl);
if (found_namespace_decl) {
context.m_namespace_map->push_back(
@@ -1881,10 +1877,8 @@ void ClangASTSource::CompleteNamespaceMap(
if (!symbol_vendor)
continue;
- SymbolContext null_sc;
-
- found_namespace_decl = symbol_vendor->FindNamespace(
- null_sc, name, &module_parent_namespace_decl);
+ found_namespace_decl =
+ symbol_vendor->FindNamespace(name, &module_parent_namespace_decl);
if (!found_namespace_decl)
continue;
@@ -1916,10 +1910,8 @@ void ClangASTSource::CompleteNamespaceMap(
if (!symbol_vendor)
continue;
- SymbolContext null_sc;
-
found_namespace_decl =
- symbol_vendor->FindNamespace(null_sc, name, &null_namespace_decl);
+ symbol_vendor->FindNamespace(name, &null_namespace_decl);
if (!found_namespace_decl)
continue;
OpenPOWER on IntegriCloud