diff options
| author | Greg Clayton <gclayton@apple.com> | 2015-12-08 18:39:50 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2015-12-08 18:39:50 +0000 |
| commit | dfc096219677c629acfcf54ba93e7b7e4685fbbf (patch) | |
| tree | d86a49848e64e8964d4a12ab182e16bc21ab8579 /lldb/source/Symbol/CompilerDeclContext.cpp | |
| parent | aad25fb9a559241c7f78f8555c328e5fe734f0ab (diff) | |
| download | bcm5719-llvm-dfc096219677c629acfcf54ba93e7b7e4685fbbf.tar.gz bcm5719-llvm-dfc096219677c629acfcf54ba93e7b7e4685fbbf.zip | |
Change DeclContextFindDeclByName to return a vector of CompilerDecl objects. Opaque pointers should only be used for the decl context object. Also made a default implementation so that GoASTContext doesn't need to override DeclContextFindDeclByName.
llvm-svn: 255038
Diffstat (limited to 'lldb/source/Symbol/CompilerDeclContext.cpp')
| -rw-r--r-- | lldb/source/Symbol/CompilerDeclContext.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lldb/source/Symbol/CompilerDeclContext.cpp b/lldb/source/Symbol/CompilerDeclContext.cpp index a28ea8d8608..e44cee67284 100644 --- a/lldb/source/Symbol/CompilerDeclContext.cpp +++ b/lldb/source/Symbol/CompilerDeclContext.cpp @@ -17,14 +17,10 @@ using namespace lldb_private; std::vector<CompilerDecl> CompilerDeclContext::FindDeclByName (ConstString name) { - std::vector<CompilerDecl> found_decls; if (IsValid()) - { - std::vector<void *> found_opaque_decls = m_type_system->DeclContextFindDeclByName(m_opaque_decl_ctx, name); - for (void *opaque_decl : found_opaque_decls) - found_decls.push_back(CompilerDecl(m_type_system, opaque_decl)); - } - return found_decls; + return m_type_system->DeclContextFindDeclByName(m_opaque_decl_ctx, name); + else + return std::vector<CompilerDecl>(); } bool |

