aboutsummaryrefslogtreecommitdiff
path: root/libcpp/files.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2013-06-24 12:17:16 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2013-06-24 12:17:16 +0000
commit7c5848b89955c3ec45a78630f23d610f13e3e47b (patch)
tree0b144aa71725e9242031811c26d608114f637c95 /libcpp/files.c
parente04518ae25780abd0e0f70533de0f0ddb53f868c (diff)
downloadgcc-7c5848b89955c3ec45a78630f23d610f13e3e47b.zip
gcc-7c5848b89955c3ec45a78630f23d610f13e3e47b.tar.gz
gcc-7c5848b89955c3ec45a78630f23d610f13e3e47b.tar.bz2
pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
2013-06-24 Richard Biener <rguenther@suse.de> * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c. (pointer_set_lookup): Declare. (class pointer_map): New template class implementing a generic pointer to T map. (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map, pointer_map<T>::contains, pointer_map<T>::insert, pointer_map<T>::traverse): New functions. * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h. (pointer_set_lookup): New function. (pointer_set_contains): Use pointer_set_lookup. (pointer_set_insert): Likewise. (insert_aux): Remove. (struct pointer_map_t): Embed a pointer_set_t. (pointer_map_create): Adjust. (pointer_map_destroy): Likewise. (pointer_map_contains): Likewise. (pointer_map_insert): Likewise. (pointer_map_traverse): Likewise. * tree-streamer.h (struct streamer_tree_cache_d): Use a pointer_map<unsigned> instead of a pointer_map_t. * tree-streamer.c (streamer_tree_cache_insert_1): Adjust. (streamer_tree_cache_lookup): Likewise. (streamer_tree_cache_create): Likewise. (streamer_tree_cache_delete): Likewise. * lto-streamer.h (struct lto_tree_ref_encoder): Use a pointer_map<unsigned> instead of a pointer_map_t. (lto_init_tree_ref_encoder): Adjust. (lto_destroy_tree_ref_encoder): Likewise. * lto-section-out.c (lto_output_decl_index): Likewise. (lto_record_function_out_decl_state): Likewise. * dominance.c (iterate_fix_dominators): Use pointer_map<int>. From-SVN: r200367
Diffstat (limited to 'libcpp/files.c')
0 files changed, 0 insertions, 0 deletions