summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2019-06-27 09:57:22 -0700
committerGitHub <noreply@github.com>2019-06-27 09:57:22 -0700
commit763cda5287f56f15ced59ab3254eacc576646dbf (patch)
tree8003a10d6a3c7cc4e64b11d91633d489fd482bfc /src/tools
parenta81f36c0d5aeda465b593dae7e0adc4ddb660149 (diff)
downloadwabt-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/tools')
-rw-r--r--src/tools/wasm-strip.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/wasm-strip.cc b/src/tools/wasm-strip.cc
index 5df87527..607ea0da 100644
--- a/src/tools/wasm-strip.cc
+++ b/src/tools/wasm-strip.cc
@@ -59,7 +59,9 @@ class BinaryReaderStrip : public BinaryReaderNop {
return true;
}
- Result BeginSection(BinarySection section_type, Offset size) override {
+ Result BeginSection(Index section_index,
+ BinarySection section_type,
+ Offset size) override {
if (section_type == BinarySection::Custom) {
return Result::Ok;
}