mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 03:26:06 +00:00

Replace a single dash with a double dash for options that have more than a single letter. llvm-bolt-wrapper.py has special treatment for output options such as "-o" and "-w" causing issues when a single dash is used, e.g. for "-write-dwp". The wrapper can be fixed as well, but using a double dash has other advantages as well. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D127538
21 lines
770 B
Plaintext
21 lines
770 B
Plaintext
## 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: -I%p/../Inputs -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 \
|
|
# RUN: -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
|