diff options
author | Daniel Wirtz <dcode@dcode.io> | 2017-11-01 23:46:07 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-11-01 15:46:07 -0700 |
commit | d38eeadc55a4b3a97b2879ba3d13a50224c28df6 (patch) | |
tree | 3e7c54475a3b3e155c258b11d32ecda09230501e /src/wasm/wasm-validator.cpp | |
parent | d328024d8c435379f248b0a257df2aedbe1c1b84 (diff) | |
download | binaryen-d38eeadc55a4b3a97b2879ba3d13a50224c28df6.tar.gz binaryen-d38eeadc55a4b3a97b2879ba3d13a50224c28df6.tar.bz2 binaryen-d38eeadc55a4b3a97b2879ba3d13a50224c28df6.zip |
Restrict validation output to just validation errors in the API (#1253)
Do not print the entire and possibly very large module when validation fails. Leave printing to tools using the validator, instead of always doing it in the validator where it can't be overridden.
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
-rw-r--r-- | src/wasm/wasm-validator.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index 4359b4e13..4564191c2 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -1036,8 +1036,6 @@ bool WasmValidator::validate(Module& module, FeatureSet features, Flags flags) { std::cerr << info.getStream(func.get()).str(); } std::cerr << info.getStream(nullptr).str(); - // also print the module - WasmPrinter::printModule(&module, std::cerr); } return info.valid.load(); } |