Commit a8eca43d authored by Matthias Braun's avatar Matthias Braun
Browse files

remove unused exception region numbers

parent 3e32262d
......@@ -28,7 +28,6 @@
#include "begin.h"
typedef unsigned long ir_visited_t;
typedef unsigned long ir_exc_region_t;
typedef unsigned long ir_label_t;
/** @ingroup dbg_info */
......
......@@ -271,9 +271,6 @@ FIRM_API ir_prog_pass_t *set_irp_phase_state_pass(const char *name,
FIRM_API irg_callee_info_state get_irp_callee_info_state(void);
FIRM_API void set_irp_callee_info_state(irg_callee_info_state s);
/** Returns a new, unique exception region number. */
FIRM_API ir_exc_region_t get_irp_next_region_nr(void);
/** Returns a new, unique label number. */
FIRM_API ir_label_t get_irp_next_label_nr(void);
......
......@@ -60,7 +60,6 @@ static ir_prog *new_incomplete_ir_prog(void)
res->modes = NEW_ARR_F(ir_mode *, 0);
res->opcodes = NEW_ARR_F(ir_op *, 0);
res->global_asms = NEW_ARR_F(ident *, 0);
res->last_region_nr = 0;
res->last_label_nr = 1; /* 0 is reserved as non-label */
res->max_irg_idx = 0;
res->max_node_nr = 0;
......
......@@ -123,13 +123,6 @@ static inline ir_graph *get_const_code_irg_(void)
return irp->const_code_irg;
}
/** Returns a new, unique exception region number. */
static inline ir_exc_region_t get_irp_next_region_nr_(void)
{
assert(irp);
return ++irp->last_region_nr;
}
/** Returns a new, unique label number. */
static inline ir_label_t get_irp_next_label_nr_(void)
{
......@@ -180,7 +173,6 @@ void remove_irp_type(ir_type *typ);
#define get_segment_type(s) get_segment_type_(s)
#define get_glob_type() get_glob_type_()
#define get_tls_type() get_tls_type_()
#define get_irp_next_region_nr() get_irp_next_region_nr_()
#define get_irp_next_label_nr() get_irp_next_label_nr_()
#define get_irp_optimization_dumps() get_irp_optimization_dumps_()
#define enable_irp_optimization_dumps() enable_irp_optimization_dumps_()
......
......@@ -650,7 +650,6 @@ struct ir_prog {
ir_class_cast_state class_cast_state; /**< The state of cast operations in code. */
ir_entity_usage_computed_state globals_entity_usage_state;
ir_exc_region_t last_region_nr; /**< The last exception region number that was assigned. */
ir_label_t last_label_nr; /**< The highest label number for generating unique labels. */
size_t max_irg_idx; /**< highest unused irg index */
long max_node_nr; /**< to generate unique numbers for nodes. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment