[llvm] [LLVM-C] Add bindings to `Instruction::getDbgRecordRange()` (PR #107802)
Michal Rostecki via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 9 07:24:29 PDT 2024
================
@@ -172,6 +172,24 @@ If you are trying to insert at the start of a block, or purposfully skip debug i
`LLVMPositionBuilder` and `LLVMPositionBuilderBefore` are unchanged. They insert before the indicated instruction but after any attached debug records.
+`LLVMGetFirstDbgRecord`, `LLVMGetLastDbgRecord`, `LLVMGetNextDbgRecord` and `LLVMGetPreviousDbgRecord` can be used for iterating over debug records in instructions (provided as `LLVMValueRef`).
----------------
vadorovsky wrote:
Done
https://github.com/llvm/llvm-project/pull/107802
More information about the llvm-commits
mailing list