[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)

Paul T Robinson via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 23 10:17:27 PDT 2024


================
@@ -1379,6 +1379,9 @@ void DwarfUnit::applySubprogramAttributes(const DISubprogram *SP, DIE &SPDie,
   if (!SP->getTargetFuncName().empty())
     addString(SPDie, dwarf::DW_AT_trampoline, SP->getTargetFuncName());
 
+  if (SP->isDebugTransparent())
----------------
pogo59 wrote:

```suggestion
    addString(SPDie, dwarf::DW_AT_trampoline, SP->getTargetFuncName());
  else if (SP->isDebugTransparent())
```
You don't want to emit the same attribute twice in the same record.

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


More information about the cfe-commits mailing list