aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-10-19 14:50:50 +0200
committerLukas Larsson <[email protected]>2017-11-20 10:31:17 +0100
commitd8d07a7593d811a6adad060951bc425ee0d81446 (patch)
tree2c5f861c105089e47ecc28ac70bfc85c5a6365b1 /lib/compiler/src/compile.erl
parent202d62c473e00fd066a70c85ba1d5c26ef2607a1 (diff)
downloadotp-d8d07a7593d811a6adad060951bc425ee0d81446.tar.gz
otp-d8d07a7593d811a6adad060951bc425ee0d81446.tar.bz2
otp-d8d07a7593d811a6adad060951bc425ee0d81446.zip
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.