[VMRange] Remove unused FindRangeIndexThatContainsValue().

llvm-svn: 305111
This commit is contained in:
Davide Italiano 2017-06-09 21:01:55 +00:00
parent 4ab80f2e9e
commit 0d54c46cdd
2 changed files with 0 additions and 16 deletions

View File

@ -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;

View File

@ -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);