summaryrefslogtreecommitdiff
path: root/src/tools/wasm-objdump.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-objdump.cc')
-rw-r--r--src/tools/wasm-objdump.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/wasm-objdump.cc b/src/tools/wasm-objdump.cc
index bb08cf88..3739da7d 100644
--- a/src/tools/wasm-objdump.cc
+++ b/src/tools/wasm-objdump.cc
@@ -19,6 +19,7 @@
#include <cstring>
#include "common.h"
+#include "feature.h"
#include "option-parser.h"
#include "stream.h"
#include "writer.h"
@@ -35,6 +36,7 @@ examples:
)";
static ObjdumpOptions s_objdump_options;
+static Features s_features;
static std::vector<const char*> s_infiles;
@@ -57,10 +59,7 @@ static void ParseOptions(int argc, char** argv) {
s_log_stream = FileStream::CreateStdout();
s_objdump_options.log_stream = s_log_stream.get();
});
- parser.AddOption("future-exceptions",
- "Test future extension for exception handling",
- []() { s_objdump_options.allow_future_exceptions = true;
- });
+ s_features.AddOptions(&parser);
parser.AddOption('x', "details", "Show section details",
[]() { s_objdump_options.details = true; });
parser.AddOption('r', "reloc", "Show relocations inline with disassembly",
@@ -85,6 +84,7 @@ Result dump_file(const char* filename) {
// Perform serveral passed over the binary in order to print out different
// types of information.
s_objdump_options.filename = filename;
+ s_objdump_options.features = s_features;
printf("\n");
ObjdumpState state;