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>
diff --git a/src/common/dwarf_cu_to_module.h b/src/common/dwarf_cu_to_module.h
index c1135dd..f73a3c9 100644
--- a/src/common/dwarf_cu_to_module.h
+++ b/src/common/dwarf_cu_to_module.h
@@ -321,9 +321,6 @@
// The handler to use to handle line number data.
LineToModuleHandler *line_reader_;
- // The handler to use to handle range lists.
- RangesHandler *ranges_handler_;
-
// This compilation unit's context.
scoped_ptr<CUContext> cu_context_;
diff --git a/src/common/module.cc b/src/common/module.cc
index 11bfc44..dc4f957 100644
--- a/src/common/module.cc
+++ b/src/common/module.cc
@@ -99,10 +99,12 @@
#if _DEBUG
{
// There should be no other PUBLIC symbols that overlap with the function.
- Extern debug_ext(function->address);
- ExternSet::iterator it_debug = externs_.lower_bound(&ext);
- assert(it_debug == externs_.end() ||
- (*it_debug)->address >= function->address + function->size);
+ for (const Range& range : function->ranges) {
+ Extern debug_ext(range.address);
+ ExternSet::iterator it_debug = externs_.lower_bound(&ext);
+ assert(it_debug == externs_.end() ||
+ (*it_debug)->address >= range.address + range.size);
+ }
}
#endif