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.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@141460 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBBlock.cpp b/source/API/SBBlock.cpp
index bc7392c..5374a7f 100644
--- a/source/API/SBBlock.cpp
+++ b/source/API/SBBlock.cpp
@@ -237,12 +237,7 @@
{
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;