summaryrefslogtreecommitdiff
path: root/src/binaryen-c.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2021-02-11 16:53:51 -0800
committerGitHub <noreply@github.com>2021-02-12 00:53:51 +0000
commit8369064c09964ab77eae2af6f0d8cce58e412e11 (patch)
tree2f12e2dd1e4ca21332d5f9e89a8c29382826204e /src/binaryen-c.h
parente283300dbb8bf573584a811bdc973b3731b67486 (diff)
downloadbinaryen-8369064c09964ab77eae2af6f0d8cce58e412e11.tar.gz
binaryen-8369064c09964ab77eae2af6f0d8cce58e412e11.tar.bz2
binaryen-8369064c09964ab77eae2af6f0d8cce58e412e11.zip
finalize: strip segments that contain only EM_ASM/EM_JS data (#3557)
If we find a data segment whose entire contents is EM_JS or EM_ASM strings then strip it from the binary. See: https://github.com/emscripten-core/emscripten/pull/13443
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r--src/binaryen-c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h
index ba61db885..eb0cfc6e1 100644
--- a/src/binaryen-c.h
+++ b/src/binaryen-c.h
@@ -1633,9 +1633,9 @@ BINARYEN_API void BinaryenMemoryInitSetSize(BinaryenExpressionRef expr,
// DataDrop
-// Gets the index of the segment being dropped by a `memory.drop` expression.
+// Gets the index of the segment being dropped by a `data.drop` expression.
BINARYEN_API uint32_t BinaryenDataDropGetSegment(BinaryenExpressionRef expr);
-// Sets the index of the segment being dropped by a `memory.drop` expression.
+// Sets the index of the segment being dropped by a `data.drop` expression.
BINARYEN_API void BinaryenDataDropSetSegment(BinaryenExpressionRef expr,
uint32_t segmentIndex);