Rebuild the entire inline-at chain by replacing the subprogram at the end of the chain with NewSP.
Declared in <llvm/IR/DebugLoc.h>
static
DebugLoc
replaceInlinedAtSubprogram(
DebugLoc const& DL,
DISubprogram& NewSP,
LLVMContext& Ctx,
DenseMap<MDNode const*, MDNode*>& Cache);
A DebugLoc whose inlined-at chain ends at NewSP.
| Name | Description |
|---|---|
| DL | The original debug location whose inlined-at chain is rebuilt. |
| NewSP | The subprogram that replaces the one at the end of the chain. |
| Ctx | The LLVM context used to create new DILocation nodes. |
| Cache | Map reused to avoid recreating identical DILocation nodes. |