[llvm] [BOLT] Fix the test of "Skip processing DWARF CUs with a DWO ID but no DWO name" (PR #160676)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 02:54:50 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-bolt

Author: Jinjie Huang  (Jinjie-Huang)

<details>
<summary>Changes</summary>

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)

---
Full diff: https://github.com/llvm/llvm-project/pull/160676.diff


1 Files Affected:

- (modified) bolt/test/X86/dwarf5-dwoid-no-dwoname.s (+1-1) 


``````````diff
diff --git a/bolt/test/X86/dwarf5-dwoid-no-dwoname.s b/bolt/test/X86/dwarf5-dwoid-no-dwoname.s
index 415d0b8f987e6..bc35973dc6f3f 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)
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/160676


More information about the llvm-commits mailing list