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
423bb185
Commit
423bb185
authored
Dec 15, 2012
by
Christoph Mallon
Browse files
bechordal_draw: Remove the write-only attribute min_step from struct block_dims.
parent
61df147d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bechordal_draw.c
View file @
423bb185
...
...
@@ -178,7 +178,6 @@ typedef struct draw_chordal_env_t {
struct
block_dims
{
unsigned
max_step
;
int
min_step
;
int
max_color
;
rect_t
box
;
rect_t
subtree_box
;
...
...
@@ -193,8 +192,6 @@ static void block_dims_walker(ir_node *block, void *data)
const
draw_chordal_opts_t
*
opts
=
env
->
opts
;
struct
block_dims
*
dims
=
OALLOCZ
(
&
env
->
obst
,
struct
block_dims
);
dims
->
min_step
=
INT_MAX
;
foreach_border_head
(
head
,
b
)
{
ir_node
*
irn
=
b
->
irn
;
const
arch_register_t
*
reg
=
arch_get_irn_register
(
irn
);
...
...
@@ -205,8 +202,6 @@ static void block_dims_walker(ir_node *block, void *data)
env
->
max_color
=
MAX
(
env
->
max_color
,
col
);
}
dims
->
min_step
=
1
;
dims
->
box
.
w
=
(
dims
->
max_color
+
2
)
*
opts
->
h_inter_gap
;
dims
->
box
.
h
=
dims
->
max_step
*
opts
->
v_inter_gap
;
...
...
Write
Preview
Supports
Markdown
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