view bolt/test/non-empty-debug-line.test @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents c4bab56944e8
children
line wrap: on
line source

# 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]]