summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/WebAssembly/reloc-code.ll
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-06-06 19:15:05 +0000
committerSam Clegg <sbc@chromium.org>2017-06-06 19:15:05 +0000
commitacd7d2b00bba425e46dcbd652b787051bcce2d02 (patch)
tree3093d185ca1a3e187bfe1c8d5f826c92298e1048 /llvm/test/MC/WebAssembly/reloc-code.ll
parent8b5f9e4438ed97a4134e17ff14da419a2cc6b9d6 (diff)
downloadbcm5719-llvm-acd7d2b00bba425e46dcbd652b787051bcce2d02.tar.gz
bcm5719-llvm-acd7d2b00bba425e46dcbd652b787051bcce2d02.zip
[WebAssembly] MC: Refactor relocation handling
The change cleans up and unifies the handling of relocation entries in WasmObjectWriter. Type index relocation no longer need to be handled separately. The only externally visible change should be that type index relocations are no longer grouped at the end. Differential Revision: https://reviews.llvm.org/D33918 llvm-svn: 304816
Diffstat (limited to 'llvm/test/MC/WebAssembly/reloc-code.ll')
-rw-r--r--llvm/test/MC/WebAssembly/reloc-code.ll20
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/test/MC/WebAssembly/reloc-code.ll b/llvm/test/MC/WebAssembly/reloc-code.ll
index 5c794400fa0..5fcd9b40381 100644
--- a/llvm/test/MC/WebAssembly/reloc-code.ll
+++ b/llvm/test/MC/WebAssembly/reloc-code.ll
@@ -36,16 +36,6 @@ entry:
; CHECK-NEXT: Addend: 0
; CHECK-NEXT: }
; CHECK-NEXT: Relocation {
-; CHECK-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0)
-; CHECK-NEXT: Offset: 0x2D
-; CHECK-NEXT: Index: 0x0
-; CHECK-NEXT: }
-; CHECK-NEXT: Relocation {
-; CHECK-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0)
-; CHECK-NEXT: Offset: 0x34
-; CHECK-NEXT: Index: 0x1
-; CHECK-NEXT: }
-; CHECK-NEXT: Relocation {
; CHECK-NEXT: Type: R_WEBASSEMBLY_TYPE_INDEX_LEB (6)
; CHECK-NEXT: Offset: 0x1A
; CHECK-NEXT: Index: 0x1
@@ -55,5 +45,15 @@ entry:
; CHECK-NEXT: Offset: 0x24
; CHECK-NEXT: Index: 0x0
; CHECK-NEXT: }
+; CHECK-NEXT: Relocation {
+; CHECK-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0)
+; CHECK-NEXT: Offset: 0x2D
+; CHECK-NEXT: Index: 0x0
+; CHECK-NEXT: }
+; CHECK-NEXT: Relocation {
+; CHECK-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0)
+; CHECK-NEXT: Offset: 0x34
+; CHECK-NEXT: Index: 0x1
+; CHECK-NEXT: }
; CHECK-NEXT: }
; CHECK-NEXT: ]
OpenPOWER on IntegriCloud