diff options
author | Yuta Saito <kateinoigakukun@gmail.com> | 2024-03-12 01:51:30 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 16:51:30 +0000 |
commit | bfcd0a10864e7e70b7aaad59141dffb9d29f05fe (patch) | |
tree | f5549587454426dd3d102ec9cf2f898a61f02257 /src | |
parent | 1471dffee8bf9939044b80d34256956a28138e96 (diff) | |
download | wabt-bfcd0a10864e7e70b7aaad59141dffb9d29f05fe.tar.gz wabt-bfcd0a10864e7e70b7aaad59141dffb9d29f05fe.tar.bz2 wabt-bfcd0a10864e7e70b7aaad59141dffb9d29f05fe.zip |
Add support for new WASM_SEGMENT_FLAG_RETAIN segment flag (#2399)
See https://github.com/llvm/llvm-project/pull/81539
Diffstat (limited to 'src')
-rw-r--r-- | src/binary-reader-objdump.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc index 488ff1d2..c3be4562 100644 --- a/src/binary-reader-objdump.cc +++ b/src/binary-reader-objdump.cc @@ -2206,6 +2206,10 @@ Result BinaryReaderObjdump::PrintSegmentFlags(uint32_t flags) { PrintDetails(" TLS"); flags &= ~WABT_SEGMENT_FLAG_TLS; } + if (flags & WASM_SEGMENT_FLAG_RETAIN) { + PrintDetails(" RETAIN"); + flags &= ~WASM_SEGMENT_FLAG_RETAIN; + } if (flags != 0) { PrintDetails(" unknown_flags=%#x", flags); } |