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
cfe914f5
Commit
cfe914f5
authored
Jan 29, 2014
by
Christoph Mallon
Browse files
Rename variables named entc to something more appropriate.
parent
bd265fc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/lower/lower_hl.c
View file @
cfe914f5
...
...
@@ -193,12 +193,12 @@ static void replace_by_Const(ir_node *const node, long const value)
/**
* Lower an Offset node.
*/
static
void
lower_offset
(
ir_node
*
const
entc
)
static
void
lower_offset
(
ir_node
*
const
offset
)
{
/* rewrite the Offset node by a Const node */
ir_entity
*
const
ent
=
get_Offset_entity
(
entc
);
ir_entity
*
const
ent
=
get_Offset_entity
(
offset
);
assert
(
get_type_state
(
get_entity_type
(
ent
))
==
layout_fixed
);
replace_by_Const
(
entc
,
get_entity_offset
(
ent
));
replace_by_Const
(
offset
,
get_entity_offset
(
ent
));
}
/**
...
...
ir/opt/combo.c
View file @
cfe914f5
...
...
@@ -3284,13 +3284,13 @@ static void apply_result(ir_node *irn, void *ctx)
}
else
if
(
is_entity
(
node
->
type
.
ent
))
{
if
(
!
is_Address
(
irn
))
{
/* can be replaced by an Address */
ir_node
*
entc
=
new_r_Address
(
current_ir_graph
,
node
->
type
.
ent
);
set_irn_node
(
entc
,
node
);
node
->
node
=
entc
;
ir_node
*
addr
=
new_r_Address
(
current_ir_graph
,
node
->
type
.
ent
);
set_irn_node
(
addr
,
node
);
node
->
node
=
addr
;
DB
((
dbg
,
LEVEL_1
,
"%+F is replaced by %+F
\n
"
,
irn
,
entc
));
DBG_OPT_COMBO
(
irn
,
entc
,
FS_OPT_COMBO_CONST
);
exchange_leader
(
irn
,
entc
);
DB
((
dbg
,
LEVEL_1
,
"%+F is replaced by %+F
\n
"
,
irn
,
addr
));
DBG_OPT_COMBO
(
irn
,
addr
,
FS_OPT_COMBO_CONST
);
exchange_leader
(
irn
,
addr
);
env
->
modified
=
1
;
}
}
else
if
(
is_Confirm
(
irn
))
{
...
...
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