[clang] [clang][DebugInfo] Attach `DISubprogram` to additional call variants (PR #166202)
J. Ryan Stinnett via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 6 07:05:21 PST 2025
================
@@ -6277,6 +6277,21 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
pushDestroy(QualType::DK_nontrivial_c_struct, Ret.getAggregateAddress(),
RetTy);
+ if (CalleeDecl) {
+ // Generate function declaration DISuprogram in order to be used
+ // in debug info about call sites.
+ if (CGDebugInfo *DI = getDebugInfo()) {
+ CodeGenFunction CalleeCGF(CGM);
----------------
jryans wrote:
Ah yes, I'll actually push my branch to the compile time tracker now and see how it goes before merging. I'll update this thread once the results come in.
https://github.com/llvm/llvm-project/pull/166202
More information about the cfe-commits
mailing list