1 # RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %S/Inputs/MachO_self_relocation.s
2 # RUN: llvm-jitlink -noexec -show-graphs='.*' %t 2>&1 | \
3 # RUN: FileCheck -check-prefix=WITHOUT %s
4 # RUN: llvm-jitlink -noexec -show-graphs='.*' -add-self-relocations %t 2>&1 | \
5 # RUN: FileCheck -check-prefix=CHECK %s
8 # WITHOUT-NEXT: symbols
9 # WITHOUT-NEXT: _form_func_ptr
11 # WITHOUT-NEXT: (block + 0x0000000a), addend = -0x00000004, kind = Delta32, target = _other
16 # CHECK-NEXT: _form_func_ptr
18 # CHECK-NEXT: (block + 0x00000003), addend = -0x00000004, kind = Delta32, target = _form_func_ptr
19 # CHECK-NEXT: (block + 0x0000000a), addend = -0x00000004, kind = Delta32, target = _other
20 # CHECK-NEXT: (block + 0x00000011), addend = -0x00000004, kind = Delta32, target = _form_func_ptr
21 # CHECK-NEXT: (block + 0x00000019), addend = -0x00000004, kind = Delta32, target = _form_func_ptr
25 # WITHOUT-NEXT: symbols
26 # WITHOUT-NEXT: _other
28 # WITHOUT-NEXT: kind = Delta32, target = _form_func_ptr
34 # CHECK-NEXT: kind = Delta32, target = _form_func_ptr