summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2015-12-22 14:53:34 -0800
committerJF Bastien <jfb@chromium.org>2015-12-22 14:53:34 -0800
commitb6786d8187e79d60fcb24e3e6589444cf463128a (patch)
treec17e7e8e244089d67a8b9ef57a1a9d9634798528 /src/wasm.h
parent7c39b5ee5dcaf2182d20ca1cb540bbff9adc4c0b (diff)
downloadbinaryen-b6786d8187e79d60fcb24e3e6589444cf463128a.tar.gz
binaryen-b6786d8187e79d60fcb24e3e6589444cf463128a.tar.bz2
binaryen-b6786d8187e79d60fcb24e3e6589444cf463128a.zip
Fix / uniformize include guards
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 7baec88aa..df7731094 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -41,8 +41,8 @@
// a branch).
//
-#ifndef __wasm_h__
-#define __wasm_h__
+#ifndef wasm_wasm_h
+#define wasm_wasm_h
#include <cassert>
#include <cstddef>
@@ -54,6 +54,7 @@
#include "compiler-support.h"
#include "emscripten-optimizer/simple_ast.h"
+#include "mixed_arena.h"
#include "pretty_printing.h"
namespace wasm {
@@ -1102,6 +1103,11 @@ private:
size_t functionTypeIndex, importIndex, exportIndex, functionIndex;
};
+class AllocatingModule : public Module {
+ public:
+ MixedArena allocator;
+};
+
//
// Simple WebAssembly AST visiting. Useful for anything that wants to do
// something different for each AST node type, like printing, interpreting,
@@ -1378,4 +1384,4 @@ struct WasmWalker : public WasmVisitor<void> {
} // namespace wasm
-#endif // __wasm_h__
+#endif // wasm_wasm_h