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:
Greg Clayton committed 2011-10-08 00:49:15 +00:00
1 parent 0ad4caa263
commit ea3e7d5ccf
12 files changed
+455 -317

No files matched your search

+1 -6
View File
@@ -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;