reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
; RUN: llc -mtriple=wasm32-unknown-unknown -filetype=obj %s -o - | llvm-objdump -r - | FileCheck %s

@foo = external global i32, align 4
@bar = global i32* @foo, align 4

define void @make_call(void ()* nocapture %func) {
entry:
  call void %func()
  ret void
}

; CHECK:      RELOCATION RECORDS FOR [CODE]:
; CHECK-NEXT: 00000006 R_WASM_TYPE_INDEX_LEB 1+0

; CHECK:      RELOCATION RECORDS FOR [DATA]:
; CHECK-NEXT: 00000006 R_WASM_MEMORY_ADDR_I32 foo+0