Skip to content

Commit 961b372

Browse files
authored
[BOLT] Fix dwarf5-dwoid-no-dwoname.s (llvm#160676)
Fix the test in dwarf5-dwoid-no-dwoname.s, add %cflags in the test to control the triple. [detail](llvm#154749 (comment))
1 parent bafcc3e commit 961b372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/test/X86/dwarf5-dwoid-no-dwoname.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Check that DWARF CU with a valid DWOId but missing a dwo_name is correctly detected.
22
# RUN: rm -rf %t && mkdir -p %t && cd %t
33
# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %s -split-dwarf-file=main.dwo -o main.o
4-
# RUN: %clang -O3 -g -gdwarf-5 -gsplit-dwarf -Wl,-q %t/main.o -o main.exe
4+
# RUN: %clang %cflags -O3 -g -gdwarf-5 -gsplit-dwarf -Wl,-q %t/main.o -o main.exe
55
# RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections 2>&1 | FileCheck %s --check-prefix=PRECHECK
66
# PRECHECK: BOLT-ERROR: broken DWARF found in CU at offset 0x3e (DWOId=0x0, missing DW_AT_dwo_name / DW_AT_GNU_dwo_name)
77

0 commit comments

Comments
 (0)