summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/CompilerDeclContext.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-12-08 18:39:50 +0000
committerGreg Clayton <gclayton@apple.com>2015-12-08 18:39:50 +0000
commitdfc096219677c629acfcf54ba93e7b7e4685fbbf (patch)
treed86a49848e64e8964d4a12ab182e16bc21ab8579 /lldb/source/Symbol/CompilerDeclContext.cpp
parentaad25fb9a559241c7f78f8555c328e5fe734f0ab (diff)
downloadbcm5719-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.cpp10
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
OpenPOWER on IntegriCloud