summaryrefslogtreecommitdiff
path: root/src/binary-reader-objdump.cc
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-09-14 19:05:05 -0700
committerBen Smith <binjimin@gmail.com>2017-09-14 19:05:05 -0700
commit18f7772c47f0720fbaa38a01e6892826705ec26f (patch)
treed3d854b48a1dd28e3f9660e2d124e25aa6da2bfb /src/binary-reader-objdump.cc
parent7a0bf623e2b69621fa45f2d194c9dd6233086203 (diff)
downloadwabt-18f7772c47f0720fbaa38a01e6892826705ec26f.tar.gz
wabt-18f7772c47f0720fbaa38a01e6892826705ec26f.tar.bz2
wabt-18f7772c47f0720fbaa38a01e6892826705ec26f.zip
Enable all reader features in objdump (#628)
Objdump should really make a best effort to display anything its given. There are other tools that are better suited for validation.
Diffstat (limited to 'src/binary-reader-objdump.cc')
-rw-r--r--src/binary-reader-objdump.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc
index 80196ce6..67b27cdc 100644
--- a/src/binary-reader-objdump.cc
+++ b/src/binary-reader-objdump.cc
@@ -1127,10 +1127,9 @@ Result ReadBinaryObjdump(const uint8_t* data,
size_t size,
ObjdumpOptions* options,
ObjdumpState* state) {
- ReadBinaryOptions read_options;
- read_options.read_debug_names = true;
- read_options.log_stream = options->log_stream;
- read_options.features = options->features;
+ Features features;
+ features.EnableAll();
+ ReadBinaryOptions read_options(features, options->log_stream, true);
switch (options->mode) {
case ObjdumpMode::Prepass: {