mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 20:10:50 +08:00
Added more functionality to Range template classes in RangeMap.h and converted remaining DWARF areas that were using ranges over to this class. Also converted lldb_private::Block to use it.
llvm-svn: 141460
This commit is contained in:
@@ -237,12 +237,7 @@ SBBlock::GetRangeIndexForBlockAddress (lldb::SBAddress block_addr)
|
||||
{
|
||||
if (m_opaque_ptr && block_addr.IsValid())
|
||||
{
|
||||
uint32_t range_idx = UINT32_MAX;
|
||||
AddressRange range;
|
||||
if (m_opaque_ptr->GetRangeContainingAddress (block_addr.ref(), range, &range_idx))
|
||||
{
|
||||
return range_idx;
|
||||
}
|
||||
return m_opaque_ptr->GetRangeIndexContainingAddress (block_addr.ref());
|
||||
}
|
||||
|
||||
return UINT32_MAX;
|
||||
|
||||
Reference in New Issue
Block a user