llvm-capstone/bolt/test/X86/dwarf4-df-basic.test
Alexander Yermolovich 4940128ace [BOLT][DWARF][NFC] Fix false positive error
The DWO Unit DIE, doesn't have low_pc/high_pc, so we were printing this error
for valid cases.

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D155032
2023-07-13 10:50:19 -07:00

13 lines
576 B
Plaintext

; RUN: rm -rf %t
; RUN: mkdir %t
; RUN: cd %t
; RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-df-basic.s \
; RUN: -split-dwarf-file=main.dwo -o main.o
; RUN: %clang %cflags -gdwarf-4 -gsplit-dwarf=split main.o -o main.exe
; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections -v 1 &> log
; RUN: cat log | FileCheck %s -check-prefix=BOLT-LOG-CHECK
; Test check we don't print out a warning in -v 1 when Unit DIE doesn't have low_pc/high_pc
; BOLT-LOG-CHECK-NOT: BOLT-ERROR: cannot update ranges for DIE in Unit offset