summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-02-10 20:03:26 +0000
committerGitHub <noreply@github.com>2021-02-10 12:03:26 -0800
commit18e080756de0702e1816c406a4edc556dc544fdc (patch)
tree7dc0b02ca98f38a181295f461bb4578f2dab6a36
parented9d1a190383cd4705cf5725dcaef59b122c9770 (diff)
downloadbinaryen-18e080756de0702e1816c406a4edc556dc544fdc.tar.gz
binaryen-18e080756de0702e1816c406a4edc556dc544fdc.tar.bz2
binaryen-18e080756de0702e1816c406a4edc556dc544fdc.zip
Comment on validation in wasm-dis (#3556)
-rw-r--r--src/tools/wasm-dis.cpp6
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;
}