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
94bdce79
Commit
94bdce79
authored
Dec 07, 2012
by
Christoph Mallon
Browse files
irpass: Remove strange suffix ".svg" from graph dump names.
parent
e0440fe8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irpass.c
View file @
94bdce79
...
...
@@ -156,11 +156,6 @@ void ir_prog_pass_mgr_add_graph_mgr(
ir_prog_pass_mgr_add
(
mgr
,
pass
);
}
static
void
create_suffix
(
char
*
suffix
,
size_t
n
,
const
char
*
pass_name
)
{
snprintf
(
suffix
,
n
,
"%s.svg"
,
pass_name
);
}
int
ir_graph_pass_mgr_run
(
ir_graph_pass_manager_t
*
mgr
)
{
size_t
i
;
...
...
@@ -189,9 +184,7 @@ int ir_graph_pass_mgr_run(ir_graph_pass_manager_t *mgr)
if
(
pass
->
dump_irg
)
{
pass
->
dump_irg
(
irg
,
pass
->
context
,
idx
);
}
else
{
char
buf
[
1024
];
create_suffix
(
buf
,
sizeof
(
buf
),
pass
->
name
);
dump_ir_graph
(
irg
,
buf
);
dump_ir_graph
(
irg
,
pass
->
name
);
}
}
++
idx
;
...
...
@@ -238,9 +231,7 @@ int ir_prog_pass_mgr_run(ir_prog_pass_manager_t *mgr)
if
(
pass
->
dump_irprog
)
{
pass
->
dump_irprog
(
irp
,
pass
->
context
,
idx
);
}
else
{
char
buf
[
1024
];
create_suffix
(
buf
,
sizeof
(
buf
),
pass
->
name
);
dump_all_ir_graphs
(
buf
);
dump_all_ir_graphs
(
pass
->
name
);
}
}
if
(
pass
->
is_wrapper
)
{
...
...
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