[llvm] [LLVM-C] Add bindings to `Instruction::getDbgRecordRange()` (PR #107802)

Michal Rostecki via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 15 09:44:53 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.
----------------
vadorovsky wrote:

Done.

I also changed "Returns" to "Return", to make it consistent with the other sentences, which are imperative.

https://github.com/llvm/llvm-project/pull/107802


More information about the llvm-commits mailing list