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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user