summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionDeclMap.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-02-15 17:14:49 +0000
committerSean Callanan <scallanan@apple.com>2012-02-15 17:14:49 +0000
commit3ae617943b6d9fdabd9f891f697c21455effcdec (patch)
tree57729aa801f74f0b309ebdf5331c94773348d00c /lldb/source/Expression/ClangExpressionDeclMap.cpp
parent02267a8e4888054b51d2e993b5b6d71ddd88961e (diff)
downloadbcm5719-llvm-3ae617943b6d9fdabd9f891f697c21455effcdec.tar.gz
bcm5719-llvm-3ae617943b6d9fdabd9f891f697c21455effcdec.zip
Stop finding bare symbols when we're explicitly
told to look in a namespace. llvm-svn: 150590
Diffstat (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp
index 7f2d9fc53d8..4e52d8f528c 100644
--- a/lldb/source/Expression/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp
@@ -2611,12 +2611,13 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context,
if (!context.m_found.variable)
{
- const bool include_symbols = true;
const bool include_inlines = false;
const bool append = false;
if (namespace_decl && module_sp)
{
+ const bool include_symbols = false;
+
module_sp->FindFunctions(name,
&namespace_decl,
eFunctionNameTypeBase,
@@ -2627,6 +2628,8 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context,
}
else
{
+ const bool include_symbols = true;
+
target->GetImages().FindFunctions(name,
eFunctionNameTypeBase,
include_symbols,
OpenPOWER on IntegriCloud