aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-12-15 09:18:14 +0100
committerBjörn Gustavsson <[email protected]>2017-01-12 12:10:11 +0100
commitac28eae9c4b14339d2ee18d2b0f246db9157c50c (patch)
treebc397967e2b24f7ba9d1203eea969ea865967480 /lib/compiler
parent8f1b84b520142f61d7a262ca4b4971fad29a530a (diff)
downloadotp-ac28eae9c4b14339d2ee18d2b0f246db9157c50c.tar.gz
otp-ac28eae9c4b14339d2ee18d2b0f246db9157c50c.tar.bz2
otp-ac28eae9c4b14339d2ee18d2b0f246db9157c50c.zip
v3_codegen: Add missing types and specs
Diffstat (limited to 'lib/compiler')
-rw-r--r--lib/compiler/src/v3_codegen.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl
index 3627cdb7cd..47c1567f10 100644
--- a/lib/compiler/src/v3_codegen.erl
+++ b/lib/compiler/src/v3_codegen.erl
@@ -69,6 +69,10 @@
stk=[], %Stack table
res=[]}). %Reserved regs: [{reserved,I,V}]
+-type life_module() :: {module(),_,_,[_]}.
+
+-spec module(life_module(), [compile:option()]) -> {'ok',beam_asm:module_code()}.
+
module({Mod,Exp,Attr,Forms}, _Options) ->
{Fs,St} = functions(Forms, {atom,Mod}),
{ok,{Mod,Exp,Attr,Fs,St#cg.lcount}}.