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
30e77781
Commit
30e77781
authored
Mar 20, 2009
by
Michael Beck
Browse files
- let %+F print entities of SymConst and Sel instructions
[r25713]
parent
e5c229ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irargs.c
View file @
30e77781
...
...
@@ -171,13 +171,19 @@ static int firm_emit(lc_appendable_t *app,
strncpy
(
tv_buf
,
"(NULL)"
,
sizeof
(
tv_buf
));
snprintf
(
buf
,
sizeof
(
buf
),
"%s%s%s<%s>"
,
A
(
"irn"
),
get_irn_opname
(
X
),
get_mode_name
(
get_irn_mode
(
X
)),
tv_buf
);
}
else
}
else
if
(
is_SymConst_addr_ent
(
X
))
{
snprintf
(
buf
,
sizeof
(
buf
),
"%s%s%s[%s]"
,
A
(
"irn"
),
get_irn_opname
(
X
),
get_mode_name
(
get_irn_mode
(
X
)),
get_entity_name
(
get_SymConst_entity
(
X
)));
}
else
if
(
is_Sel
(
X
))
{
snprintf
(
buf
,
sizeof
(
buf
),
"%s%s%s[%s]"
,
A
(
"irn"
),
get_irn_opname
(
X
),
get_mode_name
(
get_irn_mode
(
X
)),
get_entity_name
(
get_Sel_entity
(
X
)));
}
else
{
snprintf
(
buf
,
sizeof
(
buf
),
"%s%s%s"
,
A
(
"irn"
),
get_irn_opname
(
X
),
get_mode_name
(
get_irn_mode
(
X
)));
snprintf
(
add
,
sizeof
(
add
),
"[%ld:%d]"
,
get_irn_node_nr
(
X
),
get_irn_idx
(
X
));
}
break
;
snprintf
(
add
,
sizeof
(
add
),
"[%ld:%d]"
,
get_irn_node_nr
(
X
),
get_irn_idx
(
X
));
}
break
;
case
k_ir_mode
:
snprintf
(
buf
,
sizeof
(
buf
),
"%s%s"
,
A
(
"mode"
),
get_mode_name
(
X
));
break
;
...
...
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