summaryrefslogtreecommitdiff
path: root/src/binaryen-c.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-09-02 09:17:37 -0700
committerGitHub <noreply@github.com>2021-09-02 09:17:37 -0700
commite84980dffb62d672c991960a701a3c7de8f8aa74 (patch)
tree8e130330f04c3cf10702bc24241061f33591b2f9 /src/binaryen-c.h
parent4bf2d3bc3da17a28b65222d6e84f6126dcb9c553 (diff)
downloadbinaryen-e84980dffb62d672c991960a701a3c7de8f8aa74.tar.gz
binaryen-e84980dffb62d672c991960a701a3c7de8f8aa74.tar.bz2
binaryen-e84980dffb62d672c991960a701a3c7de8f8aa74.zip
Support specialized function types in element segments (#4109)
Before this, the element segments would be printed as having type funcref, and then if their table had a specialized type, the element type would not be a subtype of the table and validation would fail.
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r--src/binaryen-c.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h
index dc8bb890f..b2c4351b1 100644
--- a/src/binaryen-c.h
+++ b/src/binaryen-c.h
@@ -2253,6 +2253,10 @@ BINARYEN_API bool BinaryenModuleValidate(BinaryenModuleRef module);
// global optimize and shrink level.
BINARYEN_API void BinaryenModuleOptimize(BinaryenModuleRef module);
+// Updates the internal name mapping logic in a module. This must be called
+// after renaming module elements.
+BINARYEN_API void BinaryenModuleUpdateMaps(BinaryenModuleRef module);
+
// Gets the currently set optimize level. Applies to all modules, globally.
// 0, 1, 2 correspond to -O0, -O1, -O2 (default), etc.
BINARYEN_API int BinaryenGetOptimizeLevel(void);