1 # REQUIRES: target-x86_64
2 # XFAIL: system-windows
4 # RuntimeDyld can be used to link and load emitted code for both, MCJIT and Orc.
6 # RUN: %clang -g -S -emit-llvm --target=x86_64-unknown-unknown-elf \
7 # RUN: -o %t.ll %p/Inputs/jitbp.cpp
9 # RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \
10 # RUN: -o 'run --jit-kind=mcjit %t.ll' lli | FileCheck %s
12 # RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \
13 # RUN: -o 'run --jit-linker=rtdyld %t.ll' lli | FileCheck %s
15 # CHECK: Breakpoint 1: no locations (pending).
16 # CHECK: (lldb) run {{.*}}
17 # CHECK: Process {{.*}} launched: {{.*}}
18 # CHECK: Process {{.*}} stopped
19 # CHECK: JIT(0x{{.*}})`jitbp() at jitbp.cpp:1:15
20 # CHECK: -> 1 int jitbp() { return 0; }
22 # CHECK: 2 int main() { return jitbp(); }