summaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2018-11-14 13:03:30 -0800
committerGitHub <noreply@github.com>2018-11-14 13:03:30 -0800
commit7e9f7f62d230f7ed083c0c2d425ae47dac4f513f (patch)
tree0c9967b8d9708160b5fef2eef6be8ab4046a22dd /src/support
parent37d82ba9574d440a89b1d7f91af89cd30b35b158 (diff)
downloadbinaryen-7e9f7f62d230f7ed083c0c2d425ae47dac4f513f.tar.gz
binaryen-7e9f7f62d230f7ed083c0c2d425ae47dac4f513f.tar.bz2
binaryen-7e9f7f62d230f7ed083c0c2d425ae47dac4f513f.zip
Add wasm-emscripten-finalize flag to separate data segments into a file (#1741)
This writes the data section into a file suitable for use with emscripten's --memory-init-file flag
Diffstat (limited to 'src/support')
-rw-r--r--src/support/file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/support/file.h b/src/support/file.h
index c15e3f6ce..8355767ee 100644
--- a/src/support/file.h
+++ b/src/support/file.h
@@ -59,6 +59,10 @@ class Output {
return out;
}
+ std::ostream& write(const char* s, std::streamsize c) {
+ return out.write(s, c);
+ }
+
private:
Output() = delete;
Output(const Output &) = delete;