aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-11-20 10:32:25 +0100
committerLukas Larsson <[email protected]>2017-11-20 10:32:25 +0100
commit3b5fced77873fa6ee87a81a6162acf9d9f43c6de (patch)
tree44c92f6f39660dfef847c303b20fd260c6cd0f84 /lib/compiler/src/compile.erl
parentf977d258d3e69da8ce0549f0a7bc3d8d9ccf82a6 (diff)
parentd8d07a7593d811a6adad060951bc425ee0d81446 (diff)
downloadotp-3b5fced77873fa6ee87a81a6162acf9d9f43c6de.tar.gz
otp-3b5fced77873fa6ee87a81a6162acf9d9f43c6de.tar.bz2
otp-3b5fced77873fa6ee87a81a6162acf9d9f43c6de.zip
Merge branch 'lukas/compiler/add_to_dis/OTP-14784' into maint
* lukas/compiler/add_to_dis/OTP-14784: compiler: Add +to_dis option that dumps loaded asm
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r--lib/compiler/src/compile.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index aa2d224bb4..50b0ba76f8 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -787,8 +787,10 @@ asm_passes() ->
| binary_passes()].
binary_passes() ->
- [{native_compile,fun test_native/1,fun native_compile/2},
- {unless,binary,?pass(save_binary,not_werror)}].
+ [{iff,'to_dis',{listing,"dis"}},
+ {native_compile,fun test_native/1,fun native_compile/2},
+ {unless,binary,?pass(save_binary,not_werror)}
+ ].
%%%
%%% Compiler passes.