class.c (cp_fold_obj_type_ref): Call cgraph_get_node instead of cgraph_get_create_node.
authorMartin Jambor <mjambor@suse.cz>
Tue, 12 Apr 2011 10:02:31 +0000 (12:02 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 12 Apr 2011 10:02:31 +0000 (12:02 +0200)
commit0fa1f9b76227e5f3bb22a40a356727f0c4841179
tree25e81ab2df18f59f5d53a1d312e2195c9155fce8
parenta358e188450fe839855b1b10e3f0410bf8e54929
class.c (cp_fold_obj_type_ref): Call cgraph_get_node instead of cgraph_get_create_node.

2011-04-12  Martin Jambor  <mjambor@suse.cz>

gcc/cp/
* class.c (cp_fold_obj_type_ref): Call cgraph_get_node instead of
cgraph_get_create_node.
* decl2.c (cp_write_global_declarations): Call cgraph_get_node
instead of cgraph_get_create_node.
* method.c (make_alias_for_thunk): Call cgraph_get_node
instead of cgraph_get_create_node, assert it returns non-NULL.
(use_thunk): Likewise.
* optimize.c (maybe_clone_body): Call cgraph_same_body_alias only
when flag_syntax_only is not set.  Call cgraph_get_node instead of
cgraph_get_create_node.
(maybe_clone_body): Call cgraph_get_node instead of
cgraph_get_create_node.

From-SVN: r172308
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl2.c
gcc/cp/method.c
gcc/cp/optimize.c