From 715d1becddcb89c49d71aa19e62ed27f967e5860 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 5 May 2016 09:41:01 -0700 Subject: add optimization to c api, and so that we can find all passes in the c api library, make it dynamic --- src/binaryen-c.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/binaryen-c.h') diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 2dbf27076..2e0a7b996 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -266,6 +266,9 @@ void BinaryenSetStart(BinaryenModuleRef module, const char* name); // Print a module to stdout. void BinaryenModulePrint(BinaryenModuleRef module); +// Run the standard optimization passes on the module. +void BinaryenModuleOptimize(BinaryenModuleRef module); + // // ========== CFG / Relooper ========== // -- cgit v1.2.3