summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-08-03 01:26:16 +0000
committerGreg Clayton <gclayton@apple.com>2010-08-03 01:26:16 +0000
commit3504eee8a8438ca12b69753916d79b93552a3f0b (patch)
tree4ad1b034b2d085d41675f39765d1dd80bc80c157 /lldb/source/Core/Module.cpp
parent4887001f81635bcb2f2bed4220e03a762f1fdc8d (diff)
downloadbcm5719-llvm-3504eee8a8438ca12b69753916d79b93552a3f0b.tar.gz
bcm5719-llvm-3504eee8a8438ca12b69753916d79b93552a3f0b.zip
Added FindTypes to Module and ModuleList.
llvm-svn: 110093
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 3d0b9820117..9887cc96336 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -303,16 +303,19 @@ Module::FindFunctions(const RegularExpression& regex, bool append, SymbolContext
return 0;
}
-//uint32_t
-//Module::FindTypes(const SymbolContext& sc, const ConstString &name, bool append, uint32_t max_matches, Type::Encoding encoding, const char *udt_name, TypeList& types)
-//{
-// Timer scoped_timer(__PRETTY_FUNCTION__);
-// SymbolVendor *symbols = GetSymbolVendor ();
-// if (symbols)
-// return symbols->FindTypes(sc, name, append, max_matches, encoding, udt_name, types);
-// return 0;
-//}
-//
+uint32_t
+Module::FindTypes (const SymbolContext& sc, const ConstString &name, bool append, uint32_t max_matches, TypeList& types)
+{
+ Timer scoped_timer(__PRETTY_FUNCTION__, __PRETTY_FUNCTION__);
+ if (sc.module_sp.get() == NULL || sc.module_sp.get() == this)
+ {
+ SymbolVendor *symbols = GetSymbolVendor ();
+ if (symbols)
+ return symbols->FindTypes(sc, name, append, max_matches, types);
+ }
+ return 0;
+}
+
//uint32_t
//Module::FindTypes(const SymbolContext& sc, const RegularExpression& regex, bool append, uint32_t max_matches, Type::Encoding encoding, const char *udt_name, TypeList& types)
//{
OpenPOWER on IntegriCloud