2021-12-07 15:32:40 +08:00
|
|
|
# Verifies that BOLT emits DWARF line table with the same size if
|
|
|
|
# no functions with debug info were modified.
|
|
|
|
|
2021-12-23 21:59:35 +08:00
|
|
|
REQUIRES: system-linux
|
|
|
|
|
2022-01-25 07:02:49 +08:00
|
|
|
RUN: %clang %S/Inputs/hello.c -gdwarf-4 -o %t
|
2021-12-07 15:32:40 +08:00
|
|
|
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]]
|