18 lines · plain
1## Verifies that the extraction of DWARF line number information is correct.2 3RUN: %clangxx %cxxflags %S/Inputs/linenumber.cpp -g -o %t4RUN: llvm-bolt %t -o %t.null --print-reordered --update-debug-sections \5RUN: --print-debug-info --reorder-blocks=reverse --sequential-disassembly \6RUN: 2>&1 | FileCheck %s7 8## Local variable in f()9CHECK: movl $0xbeef, -0x4(%rbp) # debug line {{.*}}linenumber.cpp:910## Checks that a branch instruction that is inserted by BOLT does not have11## debug line info associated with it.12CHECK-NOT: jmp .LFT0 # debug line {{.*}}linenumber.cpp:113## Call to f() in g()14CHECK: callq _Z1fv{{.*}} # debug line {{.*}}linenumber.cpp:1915## Calls to g() and f() in main16CHECK: callq _Z1gv{{.*}} # debug line {{.*}}linenumber.cpp:2317CHECK: callq _Z1fv{{.*}} # debug line {{.*}}linenumber.cpp:2318