summaryrefslogtreecommitdiff
path: root/gcc/ira-int.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2014-09-12 07:27:10 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2014-09-12 07:27:10 +0000
commit19c708dc8316d80ca3611106fd989b317d55b968 (patch)
tree839e2de96e8104f4dc92dbb429fc966fdab1fdd6 /gcc/ira-int.h
parent44fc1b7b63f6d6ae9f9f618e0f6b7a40e06f08e3 (diff)
ira.h (ira_finish_once): Delete.
gcc/ * ira.h (ira_finish_once): Delete. * ira-int.h (target_ira_int::~target_ira_int): Declare. (target_ira_int::free_ira_costs): Likewise. (target_ira_int::free_register_move_costs): Likewise. (ira_finish_costs_once): Delete. * ira.c (free_register_move_costs): Replace with... (target_ira_int::free_register_move_costs): ...this new function. (target_ira_int::~target_ira_int): Define. (ira_init): Call free_register_move_costs as a member function rather than a global function. (ira_finish_once): Delete. * ira-costs.c (free_ira_costs): Replace with... (target_ira_int::free_ira_costs): ...this new function. (ira_init_costs): Call free_ira_costs as a member function rather than a global function. (ira_finish_costs_once): Delete. * target-globals.c (target_globals::~target_globals): Call the target_ira_int destructor. * toplev.c: Include lra.h. (finalize): Call lra_finish_once rather than ira_finish_once. From-SVN: r215200
Diffstat (limited to 'gcc/ira-int.h')
-rw-r--r--gcc/ira-int.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ira-int.h b/gcc/ira-int.h
index 2c82366edac..1db064193cd 100644
--- a/gcc/ira-int.h
+++ b/gcc/ira-int.h
@@ -770,6 +770,11 @@ minmax_set_iter_next (minmax_set_iterator *i)
minmax_set_iter_next (&(ITER)))
struct target_ira_int {
+ ~target_ira_int ();
+
+ void free_ira_costs ();
+ void free_register_move_costs ();
+
/* Initialized once. It is a maximal possible size of the allocated
struct costs. */
int x_max_struct_costs_size;
@@ -1025,7 +1030,6 @@ extern void ira_destroy (void);
/* ira-costs.c */
extern void ira_init_costs_once (void);
extern void ira_init_costs (void);
-extern void ira_finish_costs_once (void);
extern void ira_costs (void);
extern void ira_tune_allocno_costs (void);