llvm-capstone/bolt/test/non-empty-debug-line.test
Vladislav Khmelevsky dcc595ea3c [BOLT] Fix DWARFv5 for aarch64
This patch reverts patch "DWARFv5 default: Switch bolt tests to use
DWARFv4 since Bolt doesn't support v5 yet" and places the -gdwarf-4 flag
to the global cflags config file.

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D118283
2022-01-27 02:14:58 +03:00

22 lines
579 B
Plaintext

# Verifies that BOLT emits DWARF line table with the same size if
# no functions with debug info were modified.
REQUIRES: system-linux
RUN: %clang %cflags %S/Inputs/hello.c -g -o %t
RUN: llvm-bolt %t -o %t1 -update-debug-sections -funcs=_start
RUN: llvm-readobj -S %t > %t2
RUN: llvm-readobj -S %t1 >> %t2
RUN: FileCheck %s --input-file %t2
# Check the input and grab .debug_line size.
CHECK: File:
CHECK: Name: .debug_line
CHECK: Size: [[SIZE:[0-9]+]]
# Verify .debug_line size is the same after BOLT.
CHECK: File:
CHECK: Name: .debug_line
CHECK: Size:
CHECK-SAME: [[SIZE]]