1# REQUIRES: target-x86_64 2# XFAIL: system-windows 3 4# JITLink is the Orc-specific JIT linker implementation. 5# 6# RUN: %clang -g -S -emit-llvm -fPIC --target=x86_64-unknown-unknown-elf \ 7# RUN: -o %t.ll %p/Inputs/jitbp.cpp 8# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \ 9# RUN: -o 'run --jit-kind=orc-lazy --per-module-lazy --jit-linker=jitlink %t.ll' \ 10# RUN: lli | FileCheck %s 11 12# CHECK: Breakpoint 1: no locations (pending). 13# CHECK: (lldb) run {{.*}} 14# CHECK: Process {{.*}} stopped 15# CHECK: JIT(0x{{.*}})`jitbp() at jitbp.cpp:1:15 16# CHECK: -> 1 int jitbp() { return 0; } 17# CHECK: ^ 18# CHECK: 2 int main() { return jitbp(); } 19# CHECK: Process {{.*}} launched: {{.*}} 20