llvm-project/bolt/test/X86/dwarf4-override-comp-dir.test
Alexander Yermolovich 7d272722fb
[BOLT][DWARF] Add option to specify DW_AT_comp_dir (#79395)
Added an --comp-dir-override option that overrides DW_AT_comp_dir in the
unit die. This allows for llvm-bolt to be invoked from any category and
still find .dwo files.
2024-01-25 15:00:52 -08:00

18 lines
589 B
Plaintext

; REQUIRES: system-linux
; RUN: rm -rf %t
; RUN: mkdir %t
; RUN: cd %t
; RUN: mkdir temp
; 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: cd temp
; RUN: llvm-bolt ../main.exe -o ../main.exe.bolt --update-debug-sections -v 1 --comp-dir-override=%t
; RUN: cd ..
; RUN: ls -lat | FileCheck %s -check-prefix=BOLT-CHECK
;; Tests that BOLT processes .dwo files with --comp-dir-override.
; BOLT-CHECK: main.dwo.dwo