summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-09-14 11:51:59 +0200
committerGitHub <noreply@github.com>2020-09-14 11:51:59 +0200
commit18716065cc470c3bc29a4fecf3889891a9bf604b (patch)
treef106abf584fcc2ab1e14320682962326357479e8 /src/wasm-binary.h
parent0ade3f2761b0661ab4d1290ab704c594c1d90df9 (diff)
downloadbinaryen-18716065cc470c3bc29a4fecf3889891a9bf604b.tar.gz
binaryen-18716065cc470c3bc29a4fecf3889891a9bf604b.tar.bz2
binaryen-18716065cc470c3bc29a4fecf3889891a9bf604b.zip
Implement module and local names in name section (#3115)
Adds support for the module and local subsections of the name section plus the respective C and JS APIs to populate and obtain local names. C API: * BinaryenFunctionGetNumLocals(func) * BinaryenFunctionHasLocalName(func, index) * BinaryenFunctionGetLocalName(func, index) * BinaryenFunctionSetLocalName(func, index, name) JS API: * Function.getNumLocals(func) * Function.hasLocalName(func, index) * Function.getLocalName(func, index) * Function.setLocalName(func, index, name)
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 33f78ce7f..8a067e3fd 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -386,6 +386,7 @@ extern const char* MultivalueFeature;
extern const char* AnyrefFeature;
enum Subsection {
+ NameModule = 0,
NameFunction = 1,
NameLocal = 2,
};