22 lines · plain
1## Verifies that BOLT emits DWARF line table with the same size if2## no functions with debug info were modified.3 4REQUIRES: system-linux5 6RUN: %clang %cflags %S/Inputs/hello.c -g -o %t7RUN: llvm-bolt %t -o %t1 --update-debug-sections --funcs=_start --keep-nops8RUN: llvm-readobj -S %t > %t29RUN: llvm-readobj -S %t1 >> %t210RUN: FileCheck %s --input-file %t211 12## Check the input and grab .debug_line size.13CHECK: File:14CHECK: Name: .debug_line15CHECK: Size: [[SIZE:[0-9]+]]16 17## Verify .debug_line size is the same after BOLT.18CHECK: File:19CHECK: Name: .debug_line20CHECK: Size:21CHECK-SAME: [[SIZE]]22