diff options
author | Ben Smith <binji@chromium.org> | 2020-02-28 21:16:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 21:16:33 -0800 |
commit | f8e09f6ccfa25ca96be1a255b72e3240f29b4700 (patch) | |
tree | 0a2c21cc23fc1e23c9a6cd21d204a43d070044d6 /src/interp/interp.cc | |
parent | 7914f5f0182b5282d9de8399ba3ff264b5b5dea5 (diff) | |
download | wabt-f8e09f6ccfa25ca96be1a255b72e3240f29b4700.tar.gz wabt-f8e09f6ccfa25ca96be1a255b72e3240f29b4700.tar.bz2 wabt-f8e09f6ccfa25ca96be1a255b72e3240f29b4700.zip |
Convert Type from an enum into a class (#1350)
This is similar to the way Opcode is structured, which allows us to hang
member functions off of the enumeration.
The primary motivator for this change is the GC proposal (and the
function-references proposal) where a Type can be parameterized:
(type $T (struct ...))
(func
(local (ref $T)
...
)
In this case the type is ref, with a parameter of the type index. Making
Type a class will make it easier to store this additional information.
Diffstat (limited to 'src/interp/interp.cc')
-rw-r--r-- | src/interp/interp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interp/interp.cc b/src/interp/interp.cc index ad4e00fa..9e4ceb8b 100644 --- a/src/interp/interp.cc +++ b/src/interp/interp.cc @@ -32,7 +32,7 @@ const char* GetName(Mutability mut) { } const char* GetName(ValueType type) { - return GetTypeName(type); + return type.GetName(); } const char* GetName(ExternKind kind) { |