[llvm] [DWARF] Fix redundant DW_AT_ prefix in HANDLE_DW_AT definition for `INTEL_other_endian` (PR #145336)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 23 07:41:38 PDT 2025
https://github.com/p-x9 created https://github.com/llvm/llvm-project/pull/145336
The prefix 'DW_AT_' is automatically added by macro expansion in consumers of Dwarf.def. Having it explicitly in the macro argument results in duplicated naming such as DW_AT_DW_AT_INTEL_other_endian.
>From 63cfadf08e5a109072f41cf8258e831e16e0bbe4 Mon Sep 17 00:00:00 2001
From: p-x9 <p.x9.dev at gmail.com>
Date: Mon, 23 Jun 2025 23:40:23 +0900
Subject: [PATCH] Rename DW_AT_INTEL_other_endian to INTEL_other_endian in
HANDLE_DW_AT
The prefix 'DW_AT_' is automatically added by macro expansion in consumers of Dwarf.def.
Having it explicitly in the macro argument results in duplicated naming such as DW_AT_DW_AT_INTEL_other_endian.
---
llvm/include/llvm/BinaryFormat/Dwarf.def | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/include/llvm/BinaryFormat/Dwarf.def b/llvm/include/llvm/BinaryFormat/Dwarf.def
index 618ceefdbc8d8..9cccea4fcaa58 100644
--- a/llvm/include/llvm/BinaryFormat/Dwarf.def
+++ b/llvm/include/llvm/BinaryFormat/Dwarf.def
@@ -475,7 +475,7 @@ HANDLE_DW_AT(0x2029, HP_is_result_param, 0, HP)
// HANDLE_DW_AT(0x2004, CPQ_split_lifetimes_rtn, 0, COMPAQ)
// HANDLE_DW_AT(0x2005, CPQ_prologue_length, 0, COMPAQ)
-HANDLE_DW_AT(0x2026, DW_AT_INTEL_other_endian, 0, INTEL)
+HANDLE_DW_AT(0x2026, INTEL_other_endian, 0, INTEL)
// Green Hills.
HANDLE_DW_AT(0x2083, GHS_rsm, 0, GHS)
More information about the llvm-commits
mailing list