summaryrefslogtreecommitdiff
path: root/src/wasm-emscripten.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-emscripten.h')
-rw-r--r--src/wasm-emscripten.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/wasm-emscripten.h b/src/wasm-emscripten.h
index 7d86031c7..686269a1c 100644
--- a/src/wasm-emscripten.h
+++ b/src/wasm-emscripten.h
@@ -17,10 +17,9 @@
#ifndef wasm_wasm_emscripten_h
#define wasm_wasm_emscripten_h
-#include "wasm.h"
-#include "wasm-builder.h"
#include "support/file.h"
-
+#include "wasm-builder.h"
+#include "wasm.h"
namespace wasm {
@@ -29,10 +28,8 @@ namespace wasm {
class EmscriptenGlueGenerator {
public:
EmscriptenGlueGenerator(Module& wasm, Address stackPointerOffset = Address(0))
- : wasm(wasm),
- builder(wasm),
- stackPointerOffset(stackPointerOffset),
- useStackPointerGlobal(stackPointerOffset == 0) { }
+ : wasm(wasm), builder(wasm), stackPointerOffset(stackPointerOffset),
+ useStackPointerGlobal(stackPointerOffset == 0) {}
void generateRuntimeFunctions();
Function* generateMemoryGrowthFunction();
@@ -48,15 +45,16 @@ public:
// and restore functions.
void replaceStackPointerGlobal();
- std::string generateEmscriptenMetadata(
- Address staticBump, std::vector<Name> const& initializerFunctions);
-
+ std::string
+ generateEmscriptenMetadata(Address staticBump,
+ std::vector<Name> const& initializerFunctions);
void fixInvokeFunctionNames();
// Emits the data segments to a file. The file contains data from address base
- // onwards (we must pass in base, as we can't tell it from the wasm - the first
- // segment may start after a run of zeros, but we need those zeros in the file).
+ // onwards (we must pass in base, as we can't tell it from the wasm - the
+ // first segment may start after a run of zeros, but we need those zeros in
+ // the file).
void separateDataSegments(Output* outfile, Address base);
private: