diff options
author | Ben Smith <binjimin@gmail.com> | 2018-12-12 17:03:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-12 17:03:23 -0800 |
commit | bfc4f5b9cf7d1e43896d825d5485621956a3ec3f (patch) | |
tree | e0d264bcd1098fe817fcec699f82479aa48095d8 /src/binary-reader-logging.h | |
parent | a5827e0c2e5d3e4a05a65853ec5b5284dffe9585 (diff) | |
download | wabt-bfc4f5b9cf7d1e43896d825d5485621956a3ec3f.tar.gz wabt-bfc4f5b9cf7d1e43896d825d5485621956a3ec3f.tar.bz2 wabt-bfc4f5b9cf7d1e43896d825d5485621956a3ec3f.zip |
Pass function body size in BinaryReader callback (#975)
This is useful for finding large functions with wasm-objdump.
Diffstat (limited to 'src/binary-reader-logging.h')
-rw-r--r-- | src/binary-reader-logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader-logging.h b/src/binary-reader-logging.h index 5d28c1b2..32480306 100644 --- a/src/binary-reader-logging.h +++ b/src/binary-reader-logging.h @@ -120,7 +120,7 @@ class BinaryReaderLogging : public BinaryReaderDelegate { Result BeginCodeSection(Offset size) override; Result OnFunctionBodyCount(Index count) override; - Result BeginFunctionBody(Index index) override; + Result BeginFunctionBody(Index index, Offset size) override; Result OnLocalDeclCount(Index count) override; Result OnLocalDecl(Index decl_index, Index count, Type type) override; |