summaryrefslogtreecommitdiff
path: root/src/binaryen-c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/binaryen-c.cpp')
-rw-r--r--src/binaryen-c.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp
index 2260a93b1..7c826f0f2 100644
--- a/src/binaryen-c.cpp
+++ b/src/binaryen-c.cpp
@@ -3798,6 +3798,14 @@ void BinaryenSetLowMemoryUnused(bool on) {
globalPassOptions.lowMemoryUnused = on != 0;
}
+bool BinaryenGetZeroFilledMemory(void) {
+ return globalPassOptions.zeroFilledMemory;
+}
+
+void BinaryenSetZeroFilledMemory(bool on) {
+ globalPassOptions.zeroFilledMemory = on != 0;
+}
+
bool BinaryenGetFastMath(void) { return globalPassOptions.fastMath; }
void BinaryenSetFastMath(bool value) { globalPassOptions.fastMath = value; }