summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/SymbolContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Symbol/SymbolContext.cpp')
-rw-r--r--lldb/source/Symbol/SymbolContext.cpp77
1 files changed, 0 insertions, 77 deletions
diff --git a/lldb/source/Symbol/SymbolContext.cpp b/lldb/source/Symbol/SymbolContext.cpp
index f571d44d415..673dc3cb545 100644
--- a/lldb/source/Symbol/SymbolContext.cpp
+++ b/lldb/source/Symbol/SymbolContext.cpp
@@ -452,83 +452,6 @@ SymbolContext::GetAddressRange (uint32_t scope,
return false;
}
-ClangNamespaceDecl
-SymbolContext::FindNamespace (const ConstString &name) const
-{
- ClangNamespaceDecl namespace_decl;
- if (module_sp)
- namespace_decl = module_sp->GetSymbolVendor()->FindNamespace (*this, name, NULL);
- return namespace_decl;
-}
-
-size_t
-SymbolContext::FindFunctionsByName (const ConstString &name,
- uint32_t name_type_mask,
- bool include_symbols,
- bool append,
- SymbolContextList &sc_list) const
-{
- if (!append)
- sc_list.Clear();
- uint32_t old_size = sc_list.GetSize();
-
- if (function != NULL)
- {
- // FIXME: Look in the class of the current function, if it exists,
- // for methods matching name.
- }
-
- if (module_sp)
- module_sp->FindFunctions (name, NULL, name_type_mask, include_symbols, true, sc_list);
-
- if (target_sp)
- {
- if (!module_sp)
- {
- target_sp->GetImages().FindFunctions (name, name_type_mask, include_symbols, true, sc_list);
- }
- else
- {
- ModuleList &modules = target_sp->GetImages();
- uint32_t num_modules = modules.GetSize();
- for (uint32_t i = 0; i < num_modules; i++)
- {
- ModuleSP iter_module_sp = modules.GetModuleAtIndex(i);
- if (module_sp != iter_module_sp)
- iter_module_sp->FindFunctions (name, NULL, name_type_mask, include_symbols, true, sc_list);
- }
- }
- }
- return sc_list.GetSize() - old_size;
-}
-
-//lldb::VariableSP
-//SymbolContext::FindVariableByName (const char *name) const
-//{
-// lldb::VariableSP return_value;
-// return return_value;
-//}
-
-lldb::TypeSP
-SymbolContext::FindTypeByName (const ConstString &name) const
-{
- lldb::TypeSP return_value;
-
- TypeList types;
-
- if (module_sp && module_sp->FindTypes (*this, name, NULL, false, 1, types))
- return types.GetTypeAtIndex(0);
-
- SymbolContext sc_for_global_search;
-
- sc_for_global_search.target_sp = target_sp;
-
- if (!return_value.get() && target_sp && target_sp->GetImages().FindTypes (sc_for_global_search, name, false, 1, types))
- return types.GetTypeAtIndex(0);
-
- return return_value;
-}
-
bool
SymbolContext::GetParentOfInlinedScope (const Address &curr_frame_pc,
SymbolContext &next_frame_sc,
OpenPOWER on IntegriCloud