diff options
author | Sam Clegg <sbc@chromium.org> | 2018-03-05 14:03:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-05 14:03:02 -0800 |
commit | e7934efa2eafb9138f0154565452b4f67e7b4f89 (patch) | |
tree | 8908517c240f41e47ab644236a065742ea16a01c /src/binary-reader.h | |
parent | c3ead8a2a892ca5a1cf7a9bb5781ae6dc1076aad (diff) | |
download | wabt-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.h | 18 |
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, |