diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-11 20:56:20 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-11 20:56:20 -0500 |
commit | e982e93d68671443214dd91b4aefc6fe5992ac6b (patch) | |
tree | 618d585a09c4f1db17a563c597bbe5143d8a1122 /src/support/file.h | |
parent | e821979eb433ee0cefed786d46c870caec7a6234 (diff) | |
parent | 1b3600b0aca6a8f23b6d9e8ae33dcd75c9493810 (diff) | |
download | binaryen-e982e93d68671443214dd91b4aefc6fe5992ac6b.tar.gz binaryen-e982e93d68671443214dd91b4aefc6fe5992ac6b.tar.bz2 binaryen-e982e93d68671443214dd91b4aefc6fe5992ac6b.zip |
Merge pull request #93 from WebAssembly/asm2wasm-use-command-line
asm2wasm: use support's command-line
Diffstat (limited to 'src/support/file.h')
-rw-r--r-- | src/support/file.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/support/file.h b/src/support/file.h index e9c35f5f3..5e464d6c1 100644 --- a/src/support/file.h +++ b/src/support/file.h @@ -25,9 +25,14 @@ #include <iostream> #include <string> #include <utility> +#include <vector> namespace wasm { -std::string read_file(const std::string &filename, bool debug); +template <typename T> +T read_file(const std::string &filename, bool debug); +// Declare the valid explicit specializations. +extern template std::string read_file<>(const std::string &, bool); +extern template std::vector<char> read_file<>(const std::string &, bool); class Output { public: @@ -48,4 +53,4 @@ class Output { }; } -#endif // wasm_support_file_h +#endif // wasm_support_file_h |