Welcome to mirror list, hosted at ThFree Co, Russian Federation.

inline-debug-info.test « X86 « test « bolt - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a1b8965470ec14922fe6c3e5bccc2aa6725a34d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## Check that BOLT correctly prints and updates debug info for inlined
## functions.

# REQUIRES: system-linux

# RUN: %clang %cflags -O1 -g %p/Inputs/inline-main.c %p/Inputs/inline-foo.c \
# RUN:   -o %t.exe -Wl,-q
# RUN: llvm-bolt %t.exe -update-debug-sections -print-debug-info \
# RUN:   -print-only=main -print-after-lowering -force-inline=foo -o %t.bolt \
# RUN:   | FileCheck %s

## The call to puts() should come from inline-foo.c:
# CHECK: callq   {{.*}} # debug line {{.*}}inline-foo.c:4:3

# RUN: llvm-objdump --disassemble-symbols=main -d --line-numbers %t.bolt \
# RUN:   | FileCheck %s -check-prefix=CHECK-OBJDUMP

## Dump of main() should include debug info from inline-foo.c after inlining:
# CHECK-OBJDUMP: inline-foo.c:4