summaryrefslogtreecommitdiff
path: root/src/binary-reader-logging.cc
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-10-17 12:24:27 -0700
committerGitHub <noreply@github.com>2017-10-17 12:24:27 -0700
commit1c4d51e96077798bf6bd0dfa82f65259a07bd314 (patch)
treee237f1ae6c41aa7d52ed36bdf54bbb07cfd7b6f2 /src/binary-reader-logging.cc
parent240cd232ab6afc6732cfc79eedcedfe669f14501 (diff)
downloadwabt-1c4d51e96077798bf6bd0dfa82f65259a07bd314.tar.gz
wabt-1c4d51e96077798bf6bd0dfa82f65259a07bd314.tar.bz2
wabt-1c4d51e96077798bf6bd0dfa82f65259a07bd314.zip
wasm-objdump: Add support for data segment info (#656)
Diffstat (limited to 'src/binary-reader-logging.cc')
-rw-r--r--src/binary-reader-logging.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/binary-reader-logging.cc b/src/binary-reader-logging.cc
index b167e63d..ff169c17 100644
--- a/src/binary-reader-logging.cc
+++ b/src/binary-reader-logging.cc
@@ -437,6 +437,16 @@ Result BinaryReaderLogging::OnSymbolInfo(string_view name, uint32_t flags) {
return reader_->OnSymbolInfo(name, flags);
}
+Result BinaryReaderLogging::OnSegmentInfo(Index index,
+ string_view name,
+ uint32_t alignment,
+ uint32_t flags) {
+ LOGF("(OnSegmentInfo %d name: " PRIstringview
+ ", alignment: %d, flags: 0x%x)\n",
+ index, WABT_PRINTF_STRING_VIEW_ARG(name), alignment, flags);
+ return reader_->OnSegmentInfo(index, name, alignment, flags);
+}
+
#define DEFINE_BEGIN(name) \
Result BinaryReaderLogging::name(Offset size) { \
LOGF(#name "(%" PRIzd ")\n", size); \
@@ -603,6 +613,7 @@ DEFINE_INDEX(OnSymbolInfoCount)
DEFINE_INDEX(OnStackGlobal)
DEFINE_INDEX(OnDataSize)
DEFINE_INDEX(OnDataAlignment)
+DEFINE_INDEX(OnSegmentInfoCount)
DEFINE_END(EndLinkingSection)
DEFINE_BEGIN(BeginExceptionSection);