Fix debug build after 16e0852

Also remove ranges_handler_ which is unused.

Change-Id: I771bf4b5fc4410f0406bf26e1e405905b55389ab
Reviewed-on: https://chromium-review.googlesource.com/1180587
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Joshua Peraza 2018-08-17 18:27:24 -07:00
parent 47b4a1c105
commit 1459e5df74
2 changed files with 6 additions and 7 deletions

View file

@ -321,9 +321,6 @@ class DwarfCUToModule: public dwarf2reader::RootDIEHandler {
// The handler to use to handle line number data. // The handler to use to handle line number data.
LineToModuleHandler *line_reader_; LineToModuleHandler *line_reader_;
// The handler to use to handle range lists.
RangesHandler *ranges_handler_;
// This compilation unit's context. // This compilation unit's context.
scoped_ptr<CUContext> cu_context_; scoped_ptr<CUContext> cu_context_;

View file

@ -99,10 +99,12 @@ void Module::AddFunction(Function *function) {
#if _DEBUG #if _DEBUG
{ {
// There should be no other PUBLIC symbols that overlap with the function. // There should be no other PUBLIC symbols that overlap with the function.
Extern debug_ext(function->address); for (const Range& range : function->ranges) {
ExternSet::iterator it_debug = externs_.lower_bound(&ext); Extern debug_ext(range.address);
assert(it_debug == externs_.end() || ExternSet::iterator it_debug = externs_.lower_bound(&ext);
(*it_debug)->address >= function->address + function->size); assert(it_debug == externs_.end() ||
(*it_debug)->address >= range.address + range.size);
}
} }
#endif #endif