diff options
author | Sam Clegg <sbc@chromium.org> | 2018-05-03 13:28:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-03 13:28:33 -0700 |
commit | 95deff19c7a512699fe0529e21c2e7b6c4d2f740 (patch) | |
tree | f404a2d40de62c272d6cd8eb5ab4b3f7e0548275 /src/binary-reader-logging.cc | |
parent | a0bdeb720a1cdcff2b2045aa0a0e0e33a5a5e8a9 (diff) | |
download | wabt-95deff19c7a512699fe0529e21c2e7b6c4d2f740.tar.gz wabt-95deff19c7a512699fe0529e21c2e7b6c4d2f740.tar.bz2 wabt-95deff19c7a512699fe0529e21c2e7b6c4d2f740.zip |
Refer to target section by index in relocation section (#830)
Also add parsing of linking metadata version.
Diffstat (limited to 'src/binary-reader-logging.cc')
-rw-r--r-- | src/binary-reader-logging.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/binary-reader-logging.cc b/src/binary-reader-logging.cc index 9aa14f79..b86fb550 100644 --- a/src/binary-reader-logging.cc +++ b/src/binary-reader-logging.cc @@ -463,13 +463,10 @@ Result BinaryReaderLogging::OnInitExprI64ConstExpr(Index index, } Result BinaryReaderLogging::OnRelocCount(Index count, - BinarySection section_code, - string_view section_name) { - LOGF("OnRelocCount(count: %" PRIindex - ", section: %s, section_name: " PRIstringview ")\n", - count, GetSectionName(section_code), - WABT_PRINTF_STRING_VIEW_ARG(section_name)); - return reader_->OnRelocCount(count, section_code, section_name); + Index section_index) { + LOGF("OnRelocCount(count: %" PRIindex ", section: %" PRIindex ")\n", count, + section_index); + return reader_->OnRelocCount(count, section_index); } Result BinaryReaderLogging::OnReloc(RelocType type, |