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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h
index 45230a117..35f1d8eb8 100644
--- a/src/binaryen-c.h
+++ b/src/binaryen-c.h
@@ -3136,6 +3136,11 @@ BinaryenFunctionGetBody(BinaryenFunctionRef func);
// Sets the body of the specified `Function`.
BINARYEN_API void BinaryenFunctionSetBody(BinaryenFunctionRef func,
BinaryenExpressionRef body);
+// Gets the type of the specified `Function`.
+BINARYEN_API BinaryenHeapType BinaryenFunctionGetType(BinaryenFunctionRef func);
+// Sets the type of the specified `Function`.
+BINARYEN_API void BinaryenFunctionSetType(BinaryenFunctionRef func,
+ BinaryenHeapType type);
// Runs the standard optimization passes on the function. Uses the currently set
// global optimize and shrink level.