OSDN Git Service

Implement a cache for linemap_lookup.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jan 2004 05:17:48 +0000 (05:17 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jan 2004 05:17:48 +0000 (05:17 +0000)
commit088db31b1acd7821e83a135686c28ef1df3733f8
tree9967002839c45b654992b25498aebabbe003b616
parent52966c1d8e885e20447d21f2475573521db1c53f
Implement a cache for linemap_lookup.
* line-map.h (struct_line_maps):  Add cache field.
* line-map.c (linemap_init):  Zero cache field.
(linemap_add):  Set cache field to offset of newly allocated map.
(linemap_lookup):  Use and set cache field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76197 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/line-map.c
gcc/line-map.h