Skip to content

Commit 841002c

Browse files
authored
Merge pull request #10228 from richcarl/to_abstr-flag
compiler: Add +to_abstr flag to match +from_abstr
2 parents 7ee92ac + b26eb1a commit 841002c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/compiler/src/compile.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,8 @@ standard_passes() ->
16621662
{iff,'P',{src_listing,"P"}},
16631663
{iff,'to_pp',{done,"P"}},
16641664

1665-
{iff,'dabstr',{listing,"abstr"}}
1665+
{iff,'dabstr',{listing,"abstr"}},
1666+
{iff,'to_abstr',{done,"abstr"}}
16661667
| abstr_passes(verified_abstr)].
16671668

16681669
abstr_passes(AbstrStatus) ->
@@ -1686,7 +1687,7 @@ abstr_passes(AbstrStatus) ->
16861687
{iff,'dexp',{listing,"expand"}},
16871688
{iff,'E',?pass(legalize_vars)},
16881689
{iff,'E',{src_listing,"E"}},
1689-
{iff,'to_exp',{done,"E"}},
1690+
{iff,'to_exp',{done,"abstr"}},
16901691

16911692
%% Conversion to Core Erlang.
16921693
?pass(core),

lib/compiler/test/compile_SUITE.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,8 @@ do_file_listings(DataDir, PrivDir, [File|Files]) ->
552552

553553
%% Test options that produce a listing file if 'binary' is not given.
554554
do_listing(Simple, TargetDir, to_pp, ".P"),
555-
do_listing(Simple, TargetDir, to_exp, ".E"),
555+
do_listing(Simple, TargetDir, to_abstr, ".abstr"),
556+
do_listing(Simple, TargetDir, to_exp, ".abstr"),
556557
do_listing(Simple, TargetDir, to_core0, ".core"),
557558
ok = file:delete(filename:join(TargetDir, File ++ ".core")),
558559
do_listing(Simple, TargetDir, to_core, ".core"),

0 commit comments

Comments
 (0)