cgraph_edge refactoring.
authorMartin Liska <mliska@suse.cz>
Mon, 12 Jan 2015 08:47:26 +0000 (09:47 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 12 Jan 2015 08:47:26 +0000 (08:47 +0000)
commit90988f773c8e516007ead0d0d602a7c1708ddc23
treeb6f94f7e64d65df1361e011532e113c8e06636ab
parent6e7bdfacf2a5fe99a2d5eb31a860eb2ba681554b
cgraph_edge refactoring.

* cgraph.c (cgraph_edge::remove_callee): Move function to header
file for being inlined.
(cgraph_set_edge_callee): Delete.
(cgraph_edge::redirect_callee): Move function to header file
for being inlined.
(cgraph_edge::make_direct): Use new function.
(cgraph_edge::dump_edge_flags): New function created from
static dump_edge_flags function.
(cgraph_node::dump): Use new function.
(cgraph_edge::verify_count_and_frequency): New function created
from verify_edge_count_and_frequency.
(cgraph_edge::verify_corresponds_to_fndecl): New function created
from verify_edge_corresponds_to_fndecl.
(verify_edge_corresponds_to_fndecl): Delete.
(cgraph_node::verify_node): Use new function.
* cgraph.h (cgraph_edge::set_callee): New function.
(cgraph_edge::dump_edge_flags): Likewise.
(cgraph_edge::verify_corresponds_to_fndecl): Likewise.

From-SVN: r219448
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h