diff options
author | Ben Smith <binji@chromium.org> | 2019-06-27 09:57:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-27 09:57:22 -0700 |
commit | 763cda5287f56f15ced59ab3254eacc576646dbf (patch) | |
tree | 8003a10d6a3c7cc4e64b11d91633d489fd482bfc /src/binary-reader-logging.h | |
parent | a81f36c0d5aeda465b593dae7e0adc4ddb660149 (diff) | |
download | wabt-763cda5287f56f15ced59ab3254eacc576646dbf.tar.gz wabt-763cda5287f56f15ced59ab3254eacc576646dbf.tar.bz2 wabt-763cda5287f56f15ced59ab3254eacc576646dbf.zip |
Match custom section names in wasm-objdump (#1097)
This way you can see the contents of just one custom section by using:
```
wasm-objdump -j section_name -x
```
Where `section_name` is the name of the custom section.
Diffstat (limited to 'src/binary-reader-logging.h')
-rw-r--r-- | src/binary-reader-logging.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/binary-reader-logging.h b/src/binary-reader-logging.h index 9d938e58..62c7b228 100644 --- a/src/binary-reader-logging.h +++ b/src/binary-reader-logging.h @@ -33,7 +33,9 @@ class BinaryReaderLogging : public BinaryReaderDelegate { Result BeginModule(uint32_t version) override; Result EndModule() override; - Result BeginSection(BinarySection section_type, Offset size) override; + Result BeginSection(Index section_index, + BinarySection section_type, + Offset size) override; Result BeginCustomSection(Offset size, string_view section_name) override; Result EndCustomSection() override; |