aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-06-01 09:13:47 +0200
committerRaimo Niskanen <[email protected]>2010-06-07 17:41:16 +0200
commitae4886fecb29a91f0b3436f08ce0960c83a6971e (patch)
treec00d73fe6373d934ef855bbe0bfd46c50787c7c8 /lib/hipe
parentf54f5e00aaa3858e506c3d97daaee4ddddc8bf30 (diff)
downloadotp-ae4886fecb29a91f0b3436f08ce0960c83a6971e.tar.gz
otp-ae4886fecb29a91f0b3436f08ce0960c83a6971e.tar.bz2
otp-ae4886fecb29a91f0b3436f08ce0960c83a6971e.zip
Introduce and use the t_endian() helper
Diffstat (limited to 'lib/hipe')
-rw-r--r--lib/hipe/cerl/erl_bif_types.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hipe/cerl/erl_bif_types.erl b/lib/hipe/cerl/erl_bif_types.erl
index 27f718d9d4..170e677c54 100644
--- a/lib/hipe/cerl/erl_bif_types.erl
+++ b/lib/hipe/cerl/erl_bif_types.erl
@@ -1608,7 +1608,7 @@ type(erlang, system_info, 1, Xs) ->
t_sup([t_atom('false'),
t_list(t_tuple([t_atom(), t_any()]))]);
['endian'] ->
- t_sup([t_atom('big'), t_atom('little')]);
+ t_endian();
['fullsweep_after'] ->
t_tuple([t_atom('fullsweep_after'), t_non_neg_integer()]);
['garbage_collection'] ->
@@ -4493,6 +4493,9 @@ t_httppacket() ->
t_sup([t_HttpRequest(), t_HttpResponse(),
t_HttpHeader(), t_atom('http_eoh'), t_HttpError()]).
+t_endian() ->
+ t_sup([t_atom('big'), t_atom('little')]).
+
%% =====================================================================
%% HTTP types documented in R12B-4
%% =====================================================================