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
5cc5a022
Commit
5cc5a022
authored
Jan 10, 2019
by
johnvg@science.ru.nl
Browse files
remove unused field rule_line from struct imp_rule in the backend
parent
79c3b4dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/buildtree.c
View file @
5cc5a022
...
...
@@ -371,7 +371,6 @@ NewImpRule (unsigned line_number,TypeAlts typeAlternative,NodeP rule_root)
impRule
->
rule_alts
=
NIL
;
impRule
->
rule_root
=
rule_root
;
impRule
->
rule_line
=
line_number
;
impRule
->
rule_type
=
typeAlternative
;
impRule
->
rule_next_changed_function
=
NULL
;
...
...
backendC/CleanCompilerSources/codegen1.c
View file @
5cc5a022
...
...
@@ -2133,7 +2133,6 @@ ImpRuleP create_simple_imp_rule (NodeP lhs_root,NodeP rhs_root,SymbDefP function
imp_rule
->
rule_alts
=
rule_alt
;
imp_rule
->
rule_root
=
lhs_root
;
imp_rule
->
rule_mark
=
0
;
imp_rule
->
rule_line
=
0
;
imp_rule
->
rule_type
=
NULL
;
function_sdef
->
sdef_rule
=
imp_rule
;
...
...
backendC/CleanCompilerSources/optimisations.c
View file @
5cc5a022
...
...
@@ -825,7 +825,6 @@ static void copy_alts (RuleAltP old_alts,RuleAlts *next_p,Symbol new_symbol)
void
copy_imp_rule_nodes
(
ImpRuleP
old_rule_p
,
ImpRuleP
new_rule_p
)
{
copy_alts
(
old_rule_p
->
rule_alts
,
&
new_rule_p
->
rule_alts
,
new_rule_p
->
rule_type
->
type_alt_lhs
->
type_node_symbol
);
new_rule_p
->
rule_line
=
old_rule_p
->
rule_line
;
new_rule_p
->
rule_root
=
new_rule_p
->
rule_alts
->
alt_lhs_root
;
new_rule_p
->
rule_mark
=
old_rule_p
->
rule_mark
&
RULE_CAF_MASK
;
}
...
...
backendC/CleanCompilerSources/syntaxtr.t
View file @
5cc5a022
...
...
@@ -538,7 +538,6 @@ STRUCT (imp_rule,ImpRule){
struct
node
*
rule_strict_call_node
;
struct
node
*
rule_strict_call_node2
;
#endif
unsigned
rule_line
;
unsigned
rule_mark
;
};
...
...
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