summaryrefslogtreecommitdiff
path: root/src/ir.h
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2019-02-12 14:41:34 -0800
committerGitHub <noreply@github.com>2019-02-12 14:41:34 -0800
commite448ac7cbd74f7a048b1de15ce1a2716340a57c8 (patch)
tree2cdbf9372eabfb2584d26279beee84062036c348 /src/ir.h
parent35ee613d4f8e65e730aaa6d519ee39ce581d4f24 (diff)
downloadwabt-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.h b/src/ir.h
index 78014bfa..d61f971e 100644
--- a/src/ir.h
+++ b/src/ir.h
@@ -417,7 +417,7 @@ struct Event {
explicit Event(string_view name) : name(name.to_string()) {}
std::string name;
- TypeVector sig;
+ FuncDeclaration decl;
};
class LocalTypes {