[llvm] [RemoveDIs] Update Coroutine passes to handle DPValues (PR #74480)
Felipe de Azevedo Piovezan via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 5 10:49:26 PST 2023
================
@@ -2880,6 +2922,28 @@ void coro::salvageDebugInfo(
Expr = DIExpression::prepend(Expr, DIExpression::DerefBefore);
}
+ return {{Storage, Expr}};
+}
+
+void coro::salvageDebugInfo(
+ SmallDenseMap<Argument *, AllocaInst *, 4> &ArgToAllocaMap,
+ DbgVariableIntrinsic *DVI, bool OptimizeFrame, bool UseEntryValue) {
----------------
felipepiovezan wrote:
this function assumes `DVI` is non null, let's express that at the API level by making it a reference
https://github.com/llvm/llvm-project/pull/74480
More information about the llvm-commits
mailing list