diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-18 18:03:05 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:55:02 -0700 |
commit | 9660c200eff60c10266a85aae0637b495c4cba39 (patch) | |
tree | 386e74bb16cca4c7d20939ab4786806a32e3b1b5 /src/wasm.h | |
parent | a10ca64dc04bdba4fbf4a468604c0c88f62a4a8d (diff) | |
download | binaryen-9660c200eff60c10266a85aae0637b495c4cba39.tar.gz binaryen-9660c200eff60c10266a85aae0637b495c4cba39.tar.bz2 binaryen-9660c200eff60c10266a85aae0637b495c4cba39.zip |
get_global and set_global use a Name instead of an Index, to be more consistent with refering to other global objects; e.g. this avoids ordering issues with imported vs non-imported globals
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h index a2f6a74db..1cf00cc36 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1125,7 +1125,7 @@ public: GetGlobal() {} GetGlobal(MixedArena& allocator) {} - Index index; + Name name; }; class SetGlobal : public SpecificExpression<Expression::SetGlobalId> { @@ -1133,7 +1133,7 @@ public: SetGlobal() {} SetGlobal(MixedArena& allocator) {} - Index index; + Name name; Expression *value; }; |