Remap DW_OP_LLVM_arg indices in a DIExpression.
Synopsis
Declared in <llvm/IR/DebugInfoMetadata.h>
static
DIExpression*
replaceArg(
DIExpression const* Expr,
uint64_t OldArg,
uint64_t NewArg);
Description
Create a copy of Expr with each instance of `DW_OP_LLVM_arg, OldArg` replaced with `DW_OP_LLVM_arg, NewArg`, and each instance of DW_OP_LLVM_arg, Arg with DW_OP_LLVM_arg, Arg ‐ 1 for all Arg > OldArg. This is used when replacing one of the operands of a debug value list with another operand in the same list and deleting the old operand.
Return Value
remap DW_OP_LLVM_arg indices in a DIExpression.
Parameters
Name |
Description |
Expr |
DIExpression to transform or query. |
OldArg |
Existing DW_OP_LLVM_arg index to replace. |
NewArg |
Replacement DW_OP_LLVM_arg index. |
Created with MrDocs