summaryrefslogtreecommitdiff
path: root/src/tools/wast2wasm.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-06-12 16:10:17 -0700
committerGitHub <noreply@github.com>2017-06-12 16:10:17 -0700
commit194fbedf2065cc2ac09a4ead997256a8a8f8894a (patch)
tree472f10d5d4ec335e3adf39a85f49ca73a08a0280 /src/tools/wast2wasm.cc
parent3377747c3fb159826c5bd6d4a70ee5e167c79552 (diff)
downloadwabt-194fbedf2065cc2ac09a4ead997256a8a8f8894a.tar.gz
wabt-194fbedf2065cc2ac09a4ead997256a8a8f8894a.tar.bz2
wabt-194fbedf2065cc2ac09a4ead997256a8a8f8894a.zip
Use CamelCase names and member functions in ir.h (#492)
* Remove destroy_var; use destructor instead * Add Var copy/move constructor/assignment operator.
Diffstat (limited to 'src/tools/wast2wasm.cc')
-rw-r--r--src/tools/wast2wasm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wast2wasm.cc b/src/tools/wast2wasm.cc
index 6c84d66c..eb5ea041 100644
--- a/src/tools/wast2wasm.cc
+++ b/src/tools/wast2wasm.cc
@@ -237,7 +237,7 @@ int ProgramMain(int argc, char** argv) {
&s_write_binary_spec_options);
} else {
MemoryWriter writer;
- Module* module = get_first_module(script);
+ const Module* module = script->GetFirstModule();
if (module) {
result =
write_binary_module(&writer, module, &s_write_binary_options);