mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 14:20:17 +00:00
790b75ea36
There are cases in DWARF4 when Skeleton CU has ranges, but dwo CU doesn't. Bug was introduced in new DWARFRewriter where for DWARF4 it would fall through to DWARF5 case. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D155033
16 lines
693 B
Plaintext
16 lines
693 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-no-base.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
|
|
; RUN: llvm-dwarfdump --debug-info main.exe | FileCheck -check-prefix=PRE-BOLT-MAIN %s
|
|
; RUN: llvm-dwarfdump --debug-info main.exe.bolt | FileCheck -check-prefix=BOLT-MAIN %s
|
|
|
|
; Tests whether we add DW_AT_GNU_ranges_base, if it's not present when Skeleton CU has
|
|
; DW_AT_ranges.
|
|
|
|
; PRE-BOLT-MAIN-NOT: DW_AT_GNU_ranges_base
|
|
; BOLT-MAIN: DW_AT_GNU_ranges_base
|