summaryrefslogtreecommitdiff
path: root/src/binaryen-c.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r--src/binaryen-c.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h
index f7825b080..4f74eef4e 100644
--- a/src/binaryen-c.h
+++ b/src/binaryen-c.h
@@ -2363,7 +2363,8 @@ BINARYEN_API BinaryenModuleRef BinaryenModuleParse(const char* text);
BINARYEN_API void BinaryenModulePrint(BinaryenModuleRef module);
// Print a module to stdout in stack IR text format. Useful for debugging.
-BINARYEN_API void BinaryenModulePrintStackIR(BinaryenModuleRef module);
+BINARYEN_API void BinaryenModulePrintStackIR(BinaryenModuleRef module,
+ bool optimize);
// Print a module to stdout in asm.js syntax.
BINARYEN_API void BinaryenModulePrintAsmjs(BinaryenModuleRef module);
@@ -2504,7 +2505,8 @@ BINARYEN_API size_t BinaryenModuleWriteText(BinaryenModuleRef module,
// outputSize
BINARYEN_API size_t BinaryenModuleWriteStackIR(BinaryenModuleRef module,
char* output,
- size_t outputSize);
+ size_t outputSize,
+ bool optimize);
typedef struct BinaryenBufferSizes {
size_t outputBytes;
@@ -2550,7 +2552,7 @@ BINARYEN_API char* BinaryenModuleAllocateAndWriteText(BinaryenModuleRef module);
// char* with malloc(), and expects the user to free() them manually
// once not needed anymore.
BINARYEN_API char*
-BinaryenModuleAllocateAndWriteStackIR(BinaryenModuleRef module);
+BinaryenModuleAllocateAndWriteStackIR(BinaryenModuleRef module, bool optimize);
// Deserialize a module from binary form.
BINARYEN_API BinaryenModuleRef BinaryenModuleRead(char* input,