Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "only sink when --sink command line option is provided"
This reverts commit 3f12074.
  • Loading branch information
moritz committed Nov 19, 2012
1 parent 6cc0d6c commit 318e56c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Actions.pm
Expand Up @@ -57,7 +57,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
QAST::Op.new(:op<if>,
QAST::Op.new(:op<can>,
QAST::Var.new(:$name, :scope<local>),
QAST::SVal.new(:value<sink>),
QAST::SVal.new(:value('sink')),
),
QAST::Op.new(:op<callmethod>, :name<sink>,
QAST::Var.new(:$name, :scope<local>),
Expand All @@ -67,7 +67,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
);
}
sub autosink($past) {
$*DO_SINK && nqp::istype($past, QAST::Op) && ($past.op eq 'call' || $past.op eq 'callmethod')
nqp::istype($past, QAST::Op) && ($past.op eq 'call' || $past.op eq 'callmethod')
?? sink($past)
!! $past;
}
Expand Down
1 change: 0 additions & 1 deletion src/Perl6/Compiler.nqp
Expand Up @@ -7,7 +7,6 @@ class Perl6::Compiler is HLL::Compiler {
if nqp::existskey(%options, 'doc') && !%options<doc> {
%options<doc> := 'Text';
}
my $*DO_SINK := %options<sink>;

my $hll_ns := pir::get_root_global__Ps('perl6');
my $argiter := nqp::iterator(@args);
Expand Down
1 change: 0 additions & 1 deletion src/main.nqp
Expand Up @@ -27,7 +27,6 @@ sub MAIN(@ARGS) {
@clo.push('p');
@clo.push('doc=s?');
@clo.push('optimize=s?');
@clo.push('sink');
@clo.push('c');
@clo.push('I=s');
@clo.push('M=s');
Expand Down

0 comments on commit 318e56c

Please sign in to comment.