xref: /llvm-project/bolt/test/X86/dwarf4-split-dwarf-no-address.test (revision 6aad62cf5b7f91f4b02266cf72469e2c8e28dbef)
1; RUN: rm -rf %t
2; RUN: mkdir %t
3; RUN: cd %t
4; RUN: llvm-mc --split-dwarf-file=main.dwo   --triple=x86_64-unknown-linux-gnu \
5; RUN: --filetype=obj %p/Inputs/dwarf4-split-dwarf-no-address-main.s -o=main.o
6; RUN: llvm-mc --split-dwarf-file=helper.dwo --triple=x86_64-unknown-linux-gnu \
7; RUN: --filetype=obj %p/Inputs/dwarf4-split-dwarf-no-address-helper.s -o=helper.o
8; RUN: %clang %cflags -gdwarf-4 -gsplit-dwarf=split main.o helper.o -o main.exe -fno-pic -no-pie
9; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections --debug-thread-count=4 --cu-processing-batch-size=4
10; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.exe.bolt | FileCheck -check-prefix=BOLT %s
11
12;; Testing that there are no asserts/crashes when one of the DWARF4 CUs does not modify .debug_addr
13
14; BOLT: DW_TAG_compile_unit
15; BOLT: DW_TAG_compile_unit
16