[clang] [llvm] [clang][DebugInfo] Add virtuality call-site target information in DWARF. (PR #182510)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 20 07:21:04 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- clang/test/DebugInfo/CXX/callsite-base.cpp clang/test/DebugInfo/CXX/callsite-derived.cpp clang/test/DebugInfo/CXX/callsite-edges.cpp cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/callsite-crash.cpp cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/callsite-dwarf.cpp clang/lib/CodeGen/CGCall.cpp clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CGDebugInfo.h llvm/include/llvm/CodeGen/MachineFunction.h llvm/include/llvm/CodeGen/TargetLowering.h llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp llvm/lib/CodeGen/MIRPrinter.cpp llvm/lib/CodeGen/MachineFunction.cpp llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp llvm/lib/DebugInfo/DWARF/DWARFDie.cpp llvm/lib/Target/AArch64/AArch64ISelLowering.cpp llvm/lib/Target/ARM/ARMISelLowering.cpp llvm/lib/Target/Mips/MipsISelLowering.cpp llvm/lib/Target/RISCV/RISCVISelLowering.cpp llvm/lib/Target/X86/X86ISelLoweringCall.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/callsite-crash.cpp b/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/callsite-crash.cpp
index 745ac9675..9c9cb8c9f 100644
--- a/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/callsite-crash.cpp
+++ b/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/callsite-crash.cpp
@@ -7,9 +7,7 @@ struct Base {
virtual void foo();
} *B;
-void bar() {
- B->foo();
-}
+void bar() { B->foo(); }
// CHECK: DW_TAG_compile_unit
// CHECK: DW_TAG_subprogram
``````````
</details>
https://github.com/llvm/llvm-project/pull/182510
More information about the cfe-commits
mailing list