aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/src/xref_base.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-08-18 11:50:30 +0200
committerBjörn Gustavsson <[email protected]>2016-09-01 15:16:03 +0200
commitdb159faace6e8525e7883a7cb60eb57275d66924 (patch)
treea257a2c40090890fd32100bbe0a2cf5e3ba57ec5 /lib/tools/src/xref_base.erl
parent3db1a9683b05079f8adca4a0621b2a4f336ae7c9 (diff)
downloadotp-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.erl3
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);