diff options
Diffstat (limited to 'gcc/ipa-profile.cc')
-rw-r--r-- | gcc/ipa-profile.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ipa-profile.cc b/gcc/ipa-profile.cc index 8880e86..5e89f67 100644 --- a/gcc/ipa-profile.cc +++ b/gcc/ipa-profile.cc @@ -1065,3 +1065,13 @@ make_pass_ipa_profile (gcc::context *ctxt) { return new pass_ipa_profile (ctxt); } + +/* Reset all state within ipa-profile.cc so that we can rerun the compiler + within the same process. For use by toplev::finalize. */ + +void +ipa_profile_cc_finalize (void) +{ + delete call_sums; + call_sums = NULL; +} |