diff options
author | Alon Zakai <azakai@google.com> | 2021-02-10 20:03:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 12:03:26 -0800 |
commit | 18e080756de0702e1816c406a4edc556dc544fdc (patch) | |
tree | 7dc0b02ca98f38a181295f461bb4578f2dab6a36 /src | |
parent | ed9d1a190383cd4705cf5725dcaef59b122c9770 (diff) | |
download | binaryen-18e080756de0702e1816c406a4edc556dc544fdc.tar.gz binaryen-18e080756de0702e1816c406a4edc556dc544fdc.tar.bz2 binaryen-18e080756de0702e1816c406a4edc556dc544fdc.zip |
Comment on validation in wasm-dis (#3556)
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/wasm-dis.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/wasm-dis.cpp b/src/tools/wasm-dis.cpp index 6c8edffaf..fc07b771d 100644 --- a/src/tools/wasm-dis.cpp +++ b/src/tools/wasm-dis.cpp @@ -74,6 +74,12 @@ int main(int argc, const char* argv[]) { options.applyFeatures(wasm); + // TODO: Validation. However, validating would mean that users are forced to + // run with wasm-dis -all or such, to enable the features (unless the + // features section is present, but that's rare in general). It would be + // better to have an "autodetect" code path that enables used features + // eventually. + if (options.debug) { std::cerr << "Printing..." << std::endl; } |