[llvm] [LLVM-C] Add bindings to `Instruction::getDbgRecordRange()` (PR #107802)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 01:57:36 PDT 2024
================
@@ -3682,6 +3682,33 @@ LLVMValueRef LLVMInstructionClone(LLVMValueRef Inst);
*/
LLVMValueRef LLVMIsATerminatorInst(LLVMValueRef Inst);
+/**
+ * Obtain the first debug record attached to an instruction.
+ *
+ * The returned debug record can be used as an iterator. You will likely
+ * eventually call into LLVMGetNextDbgRecord() with it.
----------------
OCHyams wrote:
We should mention these return null. Something like: "Returns the first DbgRecord attached to Inst or NULL if there are none [...]".
Same thing applies to the other new functions ones below.
https://github.com/llvm/llvm-project/pull/107802
More information about the llvm-commits
mailing list