Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
7694b7ce
Commit
7694b7ce
authored
Jun 21, 2018
by
John van Groningen
Browse files
remove unused fields if_then_rules and if_else_rules from struct if_node_contents
parent
e5d0d070
Changes
4
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/backend.c
View file @
7694b7ce
...
...
@@ -1709,10 +1709,8 @@ BEGuardNode (BENodeP cond, BENodeDefP thenNodeDefs, BEStrictNodeIdP thenStricts,
thenElseInfo
=
ConvertAllocType
(
struct
if_node_contents
);
thenElseInfo
->
if_then_node_defs
=
thenNodeDefs
;
thenElseInfo
->
if_then_rules
=
NIL
;
thenElseInfo
->
if_then_strict_node_ids
=
thenStricts
;
thenElseInfo
->
if_else_node_defs
=
elseNodeDefs
;
thenElseInfo
->
if_else_rules
=
NIL
;
thenElseInfo
->
if_else_strict_node_ids
=
elseStricts
;
node
=
ConvertAllocType
(
NodeS
);
...
...
backendC/CleanCompilerSources/buildtree.c
View file @
7694b7ce
...
...
@@ -249,10 +249,8 @@ NewIfNode (void)
node
->
node_contents
.
contents_if
=
then_else_info
;
then_else_info
->
if_then_node_defs
=
NIL
;
then_else_info
->
if_then_rules
=
NIL
;
then_else_info
->
if_then_strict_node_ids
=
NIL
;
then_else_info
->
if_else_node_defs
=
NIL
;
then_else_info
->
if_else_rules
=
NIL
;
then_else_info
->
if_else_strict_node_ids
=
NIL
;
node
->
node_line
=-
1
;
...
...
backendC/CleanCompilerSources/optimisations.c
View file @
7694b7ce
...
...
@@ -410,9 +410,6 @@ static Node copy_root_node (Node old)
old_then_else_info
=
old
->
node_contents
.
contents_if
;
new
->
node_contents
.
contents_if
=
new_then_else_info
;
new_then_else_info
->
if_then_rules
=
NULL
;
new_then_else_info
->
if_else_rules
=
NULL
;
old_arg
=
old
->
node_arguments
;
new_arg
=
CompAllocType
(
ArgS
);
...
...
@@ -737,9 +734,6 @@ static Node copy_node (Node old,Bool lhs)
old_then_else_info
=
old
->
node_contents
.
contents_if
;
new
->
node_contents
.
contents_if
=
new_then_else_info
;
new_then_else_info
->
if_then_rules
=
NULL
;
new_then_else_info
->
if_else_rules
=
NULL
;
old_arg
=
old
->
node_arguments
;
new_arg
=
CompAllocType
(
ArgS
);
...
...
backendC/CleanCompilerSources/syntaxtr.t
View file @
7694b7ce
...
...
@@ -306,13 +306,11 @@ STRUCT (strict_node_id,StrictNodeId){
STRUCT
(
if_node_contents
,
IfNodeContents
){
NodeDefs
if_then_node_defs
;
ImpRules
if_then_rules
;
union
{
StrictNodeIdP
u_strict_node_ids
;
struct
node_id_ref_count_list
*
u_node_id_ref_counts
;
}
if_then_u
;
NodeDefs
if_else_node_defs
;
ImpRules
if_else_rules
;
union
{
StrictNodeIdP
u_strict_node_ids
;
struct
node_id_ref_count_list
*
u_node_id_ref_counts
;
...
...
@@ -409,10 +407,8 @@ STRUCT (node,Node){
#endif
#define node_then_node_defs node_contents.contents_if->if_then_node_defs
#define node_then_rules node_contents.contents_if->if_then_rules
#define node_then_strict_node_ids node_contents.contents_if->if_then_strict_node_ids
#define node_else_node_defs node_contents.contents_if->if_else_node_defs
#define node_else_rules node_contents.contents_if->if_else_rules
#define node_else_strict_node_ids node_contents.contents_if->if_else_strict_node_ids
#define node_if_scope node_contents.contents_if->if_local_scope
...
...
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