summaryrefslogtreecommitdiff
path: root/src/support/file.h
Commit message (Collapse)AuthorAgeFilesLines
* Support --symbolmap and --symbolmap=FOO in wasm-opt (#3885)Alon Zakai2021-05-141-1/+1
| | | | | | | | | | wasm-as supports --symbolmap=FOO as an argument. We got a request to support the same in wasm-opt. wasm-opt does have --print-function-map which does the same, but as a pass. To unify them, use the new pass arg sugar from #3882 which allows us to add a --symbolmap pass whose argument can be set as --symbolmap=FOO. That perfectly matches the wasm-as notation. For now, keep the old --print-function-map notation as well, to not break emscripten. After we remove it there we can remove it here.
* [wasm-split] Read and use profiles (#3400)Thomas Lively2020-11-241-1/+1
| | | | | | Read the profiles produced by wasm-split's instrumentation to guide splitting. In this initial implementation, all functions that the profile shows to have been called are kept in the initial module. In the future, users may be able to tune this so that functions that are run later will still be split out.
* Convert to using DEBUG macros (#2497)Sam Clegg2019-12-041-12/+7
| | | | | | This means that debugging/tracing can now be enabled and controlled centrally without managing and passing state around the codebase.
* Support response files, and use that in Asyncify (#2319)Alon Zakai2019-08-301-0/+6
| | | See emscripten-core/emscripten#9206, the asyncify names can need complex escaping, so this provides an escape hatch.
* Apply format changes from #2048 (#2059)Alon Zakai2019-04-261-25/+20
| | | Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048
* Allow tools to read from stdin (#1950)Thomas Lively2019-03-181-0/+2
| | | | This is necessary to write tests that don't require temporary files, such as in #1948, and is generally useful.
* standardize on 'template<' over 'template <' (i.e., remove a space) (#1782)Alon Zakai2018-11-291-2/+2
|
* Add wasm-emscripten-finalize flag to separate data segments into a file (#1741)Derek Schuff2018-11-141-0/+4
| | | | This writes the data section into a file suitable for use with emscripten's --memory-init-file flag
* 'std::string &' => 'std::string& ' (#1403)Alon Zakai2018-02-051-4/+4
| | | The & on the type is the proper convention.
* wasm-reduce tool (#1139)Alon Zakai2017-09-011-1/+8
| | | Reduce an interesting wasm to a smaller still interesting wasm. This takes an arbitrary command to run, and reduces the wasm as much as it can while keeping the behavior of that command fixed. This can be used to reduce compiler bugs in an arbitrary VM, etc.
* Wrap description (#839)Loo Rong Jie2016-11-281-1/+0
|
* refactor file flags into enumsAlon Zakai2016-03-311-4/+16
|
* set the binary bit on files we need to open in binary modeAlon Zakai2016-03-311-4/+4
|
* move printing to a passAlon Zakai2016-02-171-0/+4
|
* asm2wasm: use support's command-lineJF Bastien2016-01-111-2/+7
|
* Move file input / output to support.JF Bastien2016-01-041-0/+51