mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-05 16:21:36 +00: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:
1 parent
0ad4caa263
commit
ea3e7d5ccf
12 files changed
+455
-317
No files matched your search
@@ -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