forked from OSchip/llvm-project
[VMRange] Remove unused FindRangeIndexThatContainsValue().
llvm-svn: 305111
This commit is contained in:
parent
4ab80f2e9e
commit
0d54c46cdd
|
@ -111,11 +111,6 @@ public:
|
|||
static bool ContainsRange(const VMRange::collection &coll,
|
||||
const VMRange &range);
|
||||
|
||||
// Returns a valid index into coll when a match is found, else UINT32_MAX
|
||||
// is returned
|
||||
static size_t FindRangeIndexThatContainsValue(const VMRange::collection &coll,
|
||||
lldb::addr_t value);
|
||||
|
||||
protected:
|
||||
lldb::addr_t m_base_addr;
|
||||
lldb::addr_t m_byte_size;
|
||||
|
|
|
@ -34,17 +34,6 @@ bool VMRange::ContainsRange(const VMRange::collection &coll,
|
|||
return llvm::find_if(coll, in_range_predicate) != coll.end();
|
||||
}
|
||||
|
||||
size_t VMRange::FindRangeIndexThatContainsValue(const VMRange::collection &coll,
|
||||
lldb::addr_t value) {
|
||||
ValueInRangeUnaryPredicate in_range_predicate(value);
|
||||
VMRange::const_iterator begin = coll.begin();
|
||||
VMRange::const_iterator end = coll.end();
|
||||
VMRange::const_iterator pos = std::find_if(begin, end, in_range_predicate);
|
||||
if (pos != end)
|
||||
return std::distance(begin, pos);
|
||||
return UINT32_MAX;
|
||||
}
|
||||
|
||||
void VMRange::Dump(Stream *s, lldb::addr_t offset, uint32_t addr_width) const {
|
||||
s->AddressRange(offset + GetBaseAddress(), offset + GetEndAddress(),
|
||||
addr_width);
|
||||
|
|
Loading…
Reference in New Issue