diff options
| author | Jinjie Huang <huangjinjie@bytedance.com> | 2025-09-25 18:07:13 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-25 18:07:13 +0800 |
| commit | 961b3724775eee93da1fe3d4ed9de9f8341751f9 (patch) | |
| tree | 05cd1514d83335116cb14eef04740bbbcb18bd94 | |
| parent | bafcc3e3b3353718b47e77618f0bb5fad7d1aa15 (diff) | |
| download | llvm-961b3724775eee93da1fe3d4ed9de9f8341751f9.zip llvm-961b3724775eee93da1fe3d4ed9de9f8341751f9.tar.gz llvm-961b3724775eee93da1fe3d4ed9de9f8341751f9.tar.bz2 | |
[BOLT] Fix dwarf5-dwoid-no-dwoname.s (#160676)
Fix the test in dwarf5-dwoid-no-dwoname.s, add %cflags in the test to
control the triple.
[detail](https://github.com/llvm/llvm-project/pull/154749#issuecomment-3333043864)
| -rw-r--r-- | bolt/test/X86/dwarf5-dwoid-no-dwoname.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt/test/X86/dwarf5-dwoid-no-dwoname.s b/bolt/test/X86/dwarf5-dwoid-no-dwoname.s index 415d0b8..bc35973 100644 --- a/bolt/test/X86/dwarf5-dwoid-no-dwoname.s +++ b/bolt/test/X86/dwarf5-dwoid-no-dwoname.s @@ -1,7 +1,7 @@ ## Check that DWARF CU with a valid DWOId but missing a dwo_name is correctly detected. # RUN: rm -rf %t && mkdir -p %t && cd %t # RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %s -split-dwarf-file=main.dwo -o main.o -# RUN: %clang -O3 -g -gdwarf-5 -gsplit-dwarf -Wl,-q %t/main.o -o main.exe +# RUN: %clang %cflags -O3 -g -gdwarf-5 -gsplit-dwarf -Wl,-q %t/main.o -o main.exe # RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections 2>&1 | FileCheck %s --check-prefix=PRECHECK # PRECHECK: BOLT-ERROR: broken DWARF found in CU at offset 0x3e (DWOId=0x0, missing DW_AT_dwo_name / DW_AT_GNU_dwo_name) |
