diff options
author | Ben Smith <binjimin@gmail.com> | 2019-02-12 14:41:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12 14:41:34 -0800 |
commit | e448ac7cbd74f7a048b1de15ce1a2716340a57c8 (patch) | |
tree | 2cdbf9372eabfb2584d26279beee84062036c348 /src/ir.h | |
parent | 35ee613d4f8e65e730aaa6d519ee39ce581d4f24 (diff) | |
download | wabt-e448ac7cbd74f7a048b1de15ce1a2716340a57c8.tar.gz wabt-e448ac7cbd74f7a048b1de15ce1a2716340a57c8.tar.bz2 wabt-e448ac7cbd74f7a048b1de15ce1a2716340a57c8.zip |
Parse updated event text and binary format (#1014)
An event has a type-section index, like a function definition. The
current proposal doesn't specify the text format, so I assumed that it
would match the format of the other sections that reference function
types. This means that the following declaration styles are allowed:
```
(type $t (func (param i32)))
(event $e1 (type $t))
(event $e2 (param f32))
```
Diffstat (limited to 'src/ir.h')
-rw-r--r-- | src/ir.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -417,7 +417,7 @@ struct Event { explicit Event(string_view name) : name(name.to_string()) {} std::string name; - TypeVector sig; + FuncDeclaration decl; }; class LocalTypes { |