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