summaryrefslogtreecommitdiff
path: root/src/wasm-io.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-io.h')
-rw-r--r--src/wasm-io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-io.h b/src/wasm-io.h
index afdc4503c..17a722472 100644
--- a/src/wasm-io.h
+++ b/src/wasm-io.h
@@ -42,6 +42,9 @@ public:
void readBinary(std::string filename, Module& wasm);
// read text or binary, checking the contents for what it is
void read(std::string filename, Module& wasm);
+
+ // check whether a file is a wasm binary
+ bool isBinaryFile(std::string filename);
};
class ModuleWriter : public ModuleIO {