diff options
author | Björn Gustavsson <[email protected]> | 2016-08-18 11:50:30 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-09-01 15:16:03 +0200 |
commit | db159faace6e8525e7883a7cb60eb57275d66924 (patch) | |
tree | a257a2c40090890fd32100bbe0a2cf5e3ba57ec5 /lib/tools/src/xref_base.erl | |
parent | 3db1a9683b05079f8adca4a0621b2a4f336ae7c9 (diff) | |
download | otp-db159faace6e8525e7883a7cb60eb57275d66924.tar.gz otp-db159faace6e8525e7883a7cb60eb57275d66924.tar.bz2 otp-db159faace6e8525e7883a7cb60eb57275d66924.zip |
xref: Eliminate use of sys_pre_expand
Diffstat (limited to 'lib/tools/src/xref_base.erl')
-rw-r--r-- | lib/tools/src/xref_base.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tools/src/xref_base.erl b/lib/tools/src/xref_base.erl index f298a1ce81..8d2cc07e40 100644 --- a/lib/tools/src/xref_base.erl +++ b/lib/tools/src/xref_base.erl @@ -809,7 +809,8 @@ abst(File, Builtins, _Mode = functions) -> {exports,X0}, {attributes,A}]}} -> %% R9C- Forms0 = epp:interpret_file_attribute(Code), - {_,_,Forms,_} = sys_pre_expand:module(Forms0, []), + Forms1 = erl_expand_records:module(Forms0, []), + Forms = erl_internal:add_predefined_functions(Forms1), X = mfa_exports(X0, A, M), D = deprecated(A, X, M), xref_reader:module(M, Forms, Builtins, X, D); |