Added the ability to get the type that a typedef points to via:

SBType SBType::GetTypedefedType();

Also added the ability to get a type by type ID from a SBModule:

SBType SBModule::GetTypeByID (lldb::user_id_t uid);

llvm-svn: 199939
This commit is contained in:
Greg Clayton
2014-01-23 21:38:34 +00:00
parent b1ce33379a
commit 1f4db7da8f
8 changed files with 75 additions and 1 deletions

View File

@@ -579,6 +579,23 @@ SBModule::FindTypes (const char *type)
return retval;
}
lldb::SBType
SBModule::GetTypeByID (lldb::user_id_t uid)
{
ModuleSP module_sp (GetSP ());
if (module_sp)
{
SymbolVendor* vendor = module_sp->GetSymbolVendor();
if (vendor)
{
Type *type_ptr = vendor->ResolveTypeUID(uid);
if (type_ptr)
return SBType(type_ptr->shared_from_this());
}
}
return SBType();
}
lldb::SBTypeList
SBModule::GetTypes (uint32_t type_mask)
{