diff options
author | Björn Gustavsson <[email protected]> | 2013-11-26 10:18:30 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-01-20 12:22:42 +0100 |
commit | e3ee8cb325d294b100d2f4b3894a5d7d3ec023e0 (patch) | |
tree | 46057b8ec1d1ab93c6a20dd19b9f287fb7261284 /lib/ssh | |
parent | 48360023d2f5ae72df19f0095da55738f63800db (diff) | |
download | otp-e3ee8cb325d294b100d2f4b3894a5d7d3ec023e0.tar.gz otp-e3ee8cb325d294b100d2f4b3894a5d7d3ec023e0.tar.bz2 otp-e3ee8cb325d294b100d2f4b3894a5d7d3ec023e0.zip |
Generate intermediate code that is easier to optimize
Instead of generating:
{assign,Dst,"element(2, Val)"}
generate:
{call,erlang,element,[2,{var,"Val"}],Dst}
The latter expression is easier to understand since there is no
need to parse a string which may contain an arbitrary expression.
While at it, also discontinue the practice to treat "naked"
atoms as variables. A variable must always be given as {var,String}.
Diffstat (limited to 'lib/ssh')
0 files changed, 0 insertions, 0 deletions