Skip to content

Commit

Permalink
Merge pull request #1518 from MasterDuke17/do_not_gen_subs_for_deprec…
Browse files Browse the repository at this point in the history
…ated_ops

Don't gen subs for deprecated ops
  • Loading branch information
MasterDuke17 committed Jul 23, 2021
2 parents 3a3eb7f + f66254b commit c32d7c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/update_ops.raku
Expand Up @@ -347,7 +347,7 @@ sub op_constants(@ops is copy) {
my @counts;
my @values;
my $values_idx = 0;
@ops .= grep: {$_.mark ne '.s' and not $_.name.starts-with(any('sp_','prof_','DEPRECTAED'))};
@ops .= grep: {$_.mark ne '.s' and not $_.name.starts-with(any('sp_','prof_'))};
for @ops -> $op {
my $last_idx = $values_idx;
@offsets.push($values_idx);
Expand All @@ -357,6 +357,7 @@ sub op_constants(@ops is copy) {
}
@counts.push($values_idx - $last_idx);
}
@ops .= grep: {not $_.name.starts-with('DEPRECATED')};
return (
NQP => '
class MAST::Ops {}
Expand Down

0 comments on commit c32d7c1

Please sign in to comment.