[llvm] [llvm] Implement S_INLINEES debug symbol (PR #67490)

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 16:27:06 PDT 2023


================
@@ -250,7 +250,10 @@ CodeViewDebug::getInlineSite(const DILocation *InlinedAt,
         InlinedAt->getLine(), InlinedAt->getColumn(), SMLoc());
     Site->Inlinee = Inlinee;
     InlinedSubprograms.insert(Inlinee);
-    getFuncIdForSubprogram(Inlinee);
+    auto InlineeIdx = getFuncIdForSubprogram(Inlinee);
+
+    if (ParentFuncId == CurFn->FuncId)
----------------
rnk wrote:

I think the condition `InlinedAt->getInlinedAt() == nullptr` would more clearly correspond to directly inlined children. Or, you could reuse `OuterIA` with more changes.

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


More information about the llvm-commits mailing list