Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
a8eca43d
Commit
a8eca43d
authored
Dec 12, 2011
by
Matthias Braun
Browse files
remove unused exception region numbers
parent
3e32262d
Changes
5
Hide whitespace changes
Inline
Side-by-side
include/libfirm/firm_types.h
View file @
a8eca43d
...
...
@@ -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 */
...
...
include/libfirm/irprog.h
View file @
a8eca43d
...
...
@@ -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
);
...
...
ir/ir/irprog.c
View file @
a8eca43d
...
...
@@ -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
;
...
...
ir/ir/irprog_t.h
View file @
a8eca43d
...
...
@@ -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_()
...
...
ir/ir/irtypes.h
View file @
a8eca43d
...
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment