[llvm] [Dwarf][Transforms] Add dwarf support when func signature changed (PR #127855)

via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 21 10:18:45 PST 2025


================
@@ -654,6 +654,15 @@ DIE *DwarfUnit::getOrCreateTypeDIE(const MDNode *TyNode) {
       ->createTypeDIE(Context, *ContextDIE, Ty);
 }
 
+void DwarfUnit::addLLVMChangedArgs(DIE &ScopeDIE, const DISubprogram *SP) {
+  if (!SP->getArgChanged())
+    return;
+
+  auto *LocalDie =
+      DIE::get(DIEValueAllocator, dwarf::DW_TAG_LLVM_func_args_changed);
+  ScopeDIE.addChild(LocalDie);
+}
----------------
yonghong-song wrote:

You are correct. The tag intends for future extensibility.

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


More information about the llvm-commits mailing list