diff options
author | Björn Gustavsson <[email protected]> | 2010-12-14 16:16:09 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-12-21 11:39:10 +0100 |
commit | 1837597bf31dfbeef25d5393d27cb05382b5d176 (patch) | |
tree | 6a35d33d6b11fcabc76dce49019645f30d183c3e | |
parent | 9f4dd4934d427f0fb2caeb034115e0227cc4610a (diff) | |
download | otp-1837597bf31dfbeef25d5393d27cb05382b5d176.tar.gz otp-1837597bf31dfbeef25d5393d27cb05382b5d176.tar.bz2 otp-1837597bf31dfbeef25d5393d27cb05382b5d176.zip |
compiler: Don't include -export_type as attributes in BEAM files
Similar to -spec and -type, -export_type should be not be included
as attributes (and therefore loaded) in BEAM files, but only in
the abstract code chunk.
-rw-r--r-- | lib/compiler/src/v3_kernel.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/src/v3_kernel.erl b/lib/compiler/src/v3_kernel.erl index fbe4d8617e..3b33a08cf7 100644 --- a/lib/compiler/src/v3_kernel.erl +++ b/lib/compiler/src/v3_kernel.erl @@ -147,6 +147,7 @@ attributes([]) -> []. include_attribute(type) -> false; include_attribute(spec) -> false; include_attribute(opaque) -> false; +include_attribute(export_type) -> false; include_attribute(_) -> true. function({#c_var{name={F,Arity}=FA},Body}, St0) -> |