diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:55:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:55:28 +0000 |
commit | e81d9d49145e432d917eea3a70d2ae74dcad1d89 (patch) | |
tree | 9ed5e1a91f242e2cb5911577356e487a55c01b78 /source/Symbol/SymbolFile.cpp | |
parent | 85d8ef8f1f0e0e063a8571944302be2d2026f823 (diff) |
Notes
Diffstat (limited to 'source/Symbol/SymbolFile.cpp')
-rw-r--r-- | source/Symbol/SymbolFile.cpp | 69 |
1 files changed, 66 insertions, 3 deletions
diff --git a/source/Symbol/SymbolFile.cpp b/source/Symbol/SymbolFile.cpp index a5b138bb52af..51e35048d5cd 100644 --- a/source/Symbol/SymbolFile.cpp +++ b/source/Symbol/SymbolFile.cpp @@ -15,6 +15,9 @@ #include "lldb/Core/PluginManager.h" #include "lldb/Core/StreamString.h" #include "lldb/Symbol/ObjectFile.h" +#include "lldb/Symbol/TypeMap.h" +#include "lldb/Symbol/TypeSystem.h" +#include "lldb/Symbol/VariableList.h" using namespace lldb_private; @@ -82,8 +85,68 @@ SymbolFile::GetTypeList () return nullptr; } -lldb_private::ClangASTContext & -SymbolFile::GetClangASTContext () +TypeSystem * +SymbolFile::GetTypeSystemForLanguage (lldb::LanguageType language) { - return m_obj_file->GetModule()->GetClangASTContext(); + TypeSystem *type_system = m_obj_file->GetModule()->GetTypeSystemForLanguage(language); + if (type_system) + type_system->SetSymbolFile(this); + return type_system; +} + +uint32_t +SymbolFile::ResolveSymbolContext (const FileSpec& file_spec, uint32_t line, bool check_inlines, uint32_t resolve_scope, SymbolContextList& sc_list) +{ + return 0; +} + + +uint32_t +SymbolFile::FindGlobalVariables (const ConstString &name, const CompilerDeclContext *parent_decl_ctx, bool append, uint32_t max_matches, VariableList& variables) +{ + if (!append) + variables.Clear(); + return 0; +} + + +uint32_t +SymbolFile::FindGlobalVariables (const RegularExpression& regex, bool append, uint32_t max_matches, VariableList& variables) +{ + if (!append) + variables.Clear(); + return 0; +} + +uint32_t +SymbolFile::FindFunctions (const ConstString &name, const CompilerDeclContext *parent_decl_ctx, uint32_t name_type_mask, bool include_inlines, bool append, SymbolContextList& sc_list) +{ + if (!append) + sc_list.Clear(); + return 0; +} + +uint32_t +SymbolFile::FindFunctions (const RegularExpression& regex, bool include_inlines, bool append, SymbolContextList& sc_list) +{ + if (!append) + sc_list.Clear(); + return 0; +} + +uint32_t +SymbolFile::FindTypes (const SymbolContext& sc, const ConstString &name, const CompilerDeclContext *parent_decl_ctx, bool append, uint32_t max_matches, TypeMap& types) +{ + if (!append) + types.Clear(); + return 0; +} + + +size_t +SymbolFile::FindTypes (const std::vector<CompilerContext> &context, bool append, TypeMap& types) +{ + if (!append) + types.Clear(); + return 0; } |