summaryrefslogtreecommitdiff
path: root/src/binary-reader.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-03-05 14:03:02 -0800
committerGitHub <noreply@github.com>2018-03-05 14:03:02 -0800
commite7934efa2eafb9138f0154565452b4f67e7b4f89 (patch)
tree8908517c240f41e47ab644236a065742ea16a01c /src/binary-reader.h
parentc3ead8a2a892ca5a1cf7a9bb5781ae6dc1076aad (diff)
downloadwabt-e7934efa2eafb9138f0154565452b4f67e7b4f89.tar.gz
wabt-e7934efa2eafb9138f0154565452b4f67e7b4f89.tar.bz2
wabt-e7934efa2eafb9138f0154565452b4f67e7b4f89.zip
Add support for new symbol table format (#769)
Diffstat (limited to 'src/binary-reader.h')
-rw-r--r--src/binary-reader.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/binary-reader.h b/src/binary-reader.h
index c42154be..70a58ed0 100644
--- a/src/binary-reader.h
+++ b/src/binary-reader.h
@@ -307,8 +307,22 @@ class BinaryReaderDelegate {
/* Linking section */
virtual Result BeginLinkingSection(Offset size) = 0;
virtual Result OnStackGlobal(Index stack_global) = 0;
- virtual Result OnSymbolInfoCount(Index count) = 0;
- virtual Result OnSymbolInfo(string_view name, uint32_t flags) = 0;
+ virtual Result OnSymbolCount(Index count) = 0;
+ virtual Result OnSymbol(Index index, SymbolType type, uint32_t flags) = 0;
+ virtual Result OnDataSymbol(Index index,
+ uint32_t flags,
+ string_view name,
+ Index segment,
+ uint32_t offset,
+ uint32_t size) = 0;
+ virtual Result OnFunctionSymbol(Index index,
+ uint32_t flags,
+ string_view name,
+ Index function_index) = 0;
+ virtual Result OnGlobalSymbol(Index index,
+ uint32_t flags,
+ string_view name,
+ Index global_index) = 0;
virtual Result OnDataSize(uint32_t data_size) = 0;
virtual Result OnSegmentInfoCount(Index count) = 0;
virtual Result OnSegmentInfo(Index index,