diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-10-08 00:49:15 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-10-08 00:49:15 +0000 |
| commit | ea3e7d5ccf4f00741e4b106978bd8dab5cece3a1 (patch) | |
| tree | 383f59653e8cae73dea0347a3d84b49310e5eaf1 /lldb/source/API | |
| parent | 0ad4caa26384fad46de9baba4fa326890cfebbcc (diff) | |
| download | bcm5719-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.cpp | 7 |
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; |

