diff options
| author | Sam Clegg <sbc@chromium.org> | 2017-07-12 00:24:54 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2017-07-12 00:24:54 +0000 |
| commit | 9c07f94a1f6d33a05f208b713c717cf9a221cb00 (patch) | |
| tree | 40481a6b372e9b00b47659633ca123796235bb75 /llvm/test/ObjectYAML | |
| parent | 878fdee0cf4e0357773b5198f6de1b48996dd090 (diff) | |
| download | bcm5719-llvm-9c07f94a1f6d33a05f208b713c717cf9a221cb00.tar.gz bcm5719-llvm-9c07f94a1f6d33a05f208b713c717cf9a221cb00.zip | |
[WebAssembly] Expose the offset of each data segment
Summary:
This allows tools like lld that process relocations
to apply data relocation correctly. This information
is required because relocation are stored as section
offset.
Subscribers: jfb, dschuff, jgravelle-google, aheejin
Differential Revision: https://reviews.llvm.org/D35234
llvm-svn: 307741
Diffstat (limited to 'llvm/test/ObjectYAML')
| -rw-r--r-- | llvm/test/ObjectYAML/wasm/data_section.yaml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/ObjectYAML/wasm/data_section.yaml b/llvm/test/ObjectYAML/wasm/data_section.yaml index b8c65abbff9..521aa540278 100644 --- a/llvm/test/ObjectYAML/wasm/data_section.yaml +++ b/llvm/test/ObjectYAML/wasm/data_section.yaml @@ -8,7 +8,7 @@ Sections: - Initial: 0x00000003 - Type: DATA Segments: - - Index: 0 + - MemoryIndex: 0 Offset: Opcode: I32_CONST Value: 4 @@ -38,7 +38,8 @@ Sections: # CHECK-NEXT: Offset: 0x00000006 # CHECK-NEXT: Addend: -6 # CHECK-NEXT: Segments: -# CHECK-NEXT: - Index: 0 +# CHECK-NEXT: - SectionOffset: 6 +# CHECK-NEXT: MemoryIndex: 0 # CHECK-NEXT: Offset: # CHECK-NEXT: Opcode: I32_CONST # CHECK-NEXT: Value: 4 |

