* dwarf_reader.cc (next_generation_count): New static var.
authorCraig Silverstein <csilvers@google.com>
Thu, 1 May 2008 00:25:33 +0000 (00:25 +0000)
committerCraig Silverstein <csilvers@google.com>
Thu, 1 May 2008 00:25:33 +0000 (00:25 +0000)
commite4e5049b7bb41c36b6696a59f59eaafee95aedb1
tree461b3fb5fa13581bb234dbd13c08d19160b35c9c
parentf089c43345c097a7f604adcb0dcbef301d57ef93
* dwarf_reader.cc (next_generation_count): New static var.
(Addr2line_cache_entry): New struct.
(addr2line_cache): New static var.
(Dwarf_line_info::one_addr2line): Added caching.
(Dwarf_line_info::clear_addr2line_cache): New function.
* dwarf_reader.h (Dwarf_line_info::one_addr2line): Add
cache-size parameter.
(Dwarf_line_info::one_addr2line_cache): New function.
* symtab.cc (Symbol_table::detect_odr_violations): Pass
new cache-size argument to one_addr2line(), and clear cache.
gold/ChangeLog
gold/dwarf_reader.cc
gold/dwarf_reader.h
gold/symtab.cc