summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-10-08 00:49:15 +0000
committerGreg Clayton <gclayton@apple.com>2011-10-08 00:49:15 +0000
commitea3e7d5ccf4f00741e4b106978bd8dab5cece3a1 (patch)
tree383f59653e8cae73dea0347a3d84b49310e5eaf1 /lldb/source/API
parent0ad4caa26384fad46de9baba4fa326890cfebbcc (diff)
downloadbcm5719-llvm-ea3e7d5ccf4f00741e4b106978bd8dab5cece3a1.tar.gz
bcm5719-llvm-ea3e7d5ccf4f00741e4b106978bd8dab5cece3a1.zip
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
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBBlock.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lldb/source/API/SBBlock.cpp b/lldb/source/API/SBBlock.cpp
index bc7392c11f9..5374a7f86ba 100644
--- a/lldb/source/API/SBBlock.cpp
+++ b/lldb/source/API/SBBlock.cpp
@@ -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;
OpenPOWER on IntegriCloud