diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-31 13:47:20 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-31 13:47:20 +0000 |
commit | 06d12890b89db5e053205847b130186664dbcb07 (patch) | |
tree | 0b6aa3ca927f90f796fadadf97fd76f1e2d242e1 /gcc/lto-streamer.h | |
parent | 7e4b741c99f9864dabdb46d614c5dc23c0e9f7b6 (diff) | |
download | gcc-06d12890b89db5e053205847b130186664dbcb07.tar.gz |
* cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
* gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
* tree-cfg.c (verify_gimple_label): ... here.
* ipa-utils.c: Include lto-streamer.h, ipa-inline.h
(ipa_merge_profiles): New function.
* lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
(lto_input_function_body): Likewise.
* ipa-utils.h (ipa_merge_profiles): Declare.
* lto-streamer.h (lto_input_function_body): Update prototype.
(emit_label_in_global_context_p): Remove.
* lto-symtab.c: Include ipa-utils.h
(lto_cgraph_replace_node): Use ipa_merge_profiles.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202131 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r-- | gcc/lto-streamer.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index 663ab24aa05..4a2ea0b2993 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -834,7 +834,8 @@ extern void lto_streamer_hooks_init (void); /* In lto-streamer-in.c */ extern void lto_input_cgraph (struct lto_file_decl_data *, const char *); extern void lto_reader_init (void); -extern void lto_input_function_body (struct lto_file_decl_data *, tree, +extern void lto_input_function_body (struct lto_file_decl_data *, + struct cgraph_node *, const char *); extern void lto_input_constructors_and_inits (struct lto_file_decl_data *, const char *); @@ -1030,14 +1031,6 @@ lto_tree_ref_encoder_get_tree (struct lto_tree_ref_encoder *encoder, return encoder->trees[idx]; } - -/* Return true if LABEL should be emitted in the global context. */ -static inline bool -emit_label_in_global_context_p (tree label) -{ - return DECL_NONLOCAL (label) || FORCED_LABEL (label); -} - /* Return number of encoded nodes in ENCODER. */ static inline int lto_symtab_encoder_size (lto_symtab_encoder_t encoder) |