coverage.c (get_coverage_counts): Use current_function_decl.
authorJan Hubicka <hubicka@ucw.cz>
Tue, 1 Jan 2019 12:49:18 +0000 (13:49 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 1 Jan 2019 12:49:18 +0000 (12:49 +0000)
commit962e88a9f5a19736412f8b17b24464e2b700f002
tree1f3f47a623168992283688de2d7a2a6b07341b11
parenta5544970246db337977bb8b69ab120e9ef209317
coverage.c (get_coverage_counts): Use current_function_decl.

* coverage.c (get_coverage_counts): Use current_function_decl.
* profile.c (read_thunk_profile): New function.
(branch_prob): Add THUNK parameter.
* tree-profile.c (tree_profiling): Handle thunks.
* value-prof.c (init_node_map): Handle thunks.
* value-prof.h (branch_prob): Upate prototype.
(read_thunk_profile): Declare.

* g++.dg/tree-prof/devirt.C: Update testcase.

From-SVN: r267495
gcc/ChangeLog
gcc/coverage.c
gcc/profile.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-prof/devirt.C
gcc/tree-profile.c
gcc/value-prof.c
gcc/value-prof.h