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

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


https://github.com/Jinjie-Huang created https://github.com/llvm/llvm-project/pull/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)

>From 00ebadf953af4b42eeda4d748adb14a7b7a10f4f Mon Sep 17 00:00:00 2001
From: huangjinjie <huangjinjie at bytedance.com>
Date: Thu, 25 Sep 2025 17:48:50 +0800
Subject: [PATCH] fix dwoid no name test

---
 bolt/test/X86/dwarf5-dwoid-no-dwoname.s | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 



More information about the llvm-commits mailing list