llvm.org GIT mirror llvm / e29c97e
Update the Go bindings for r309426 (remove offset from llvm.dbg.value) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309448 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 3 years ago
3 changed file(s) with 5 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
236236 }
237237
238238 LLVMValueRef LLVMDIBuilderInsertValueAtEnd(LLVMDIBuilderRef Dref,
239 LLVMValueRef Val, uint64_t Offset,
239 LLVMValueRef Val,
240240 LLVMMetadataRef VarInfo,
241241 LLVMMetadataRef Expr,
242242 LLVMBasicBlockRef Block) {
246246
247247 DIBuilder *D = unwrap(Dref);
248248 Instruction *Instr = D->insertDbgValueIntrinsic(
249 unwrap(Val), Offset, unwrap(VarInfo),
250 unwrap(Expr), /* DebugLoc */ nullptr, unwrap(Block));
249 unwrap(Val), unwrap(VarInfo), unwrap(Expr),
250 /* DebugLoc */ nullptr, unwrap(Block));
251251 return wrap(Instr);
252252 }
131131 LLVMBasicBlockRef Block);
132132
133133 LLVMValueRef LLVMDIBuilderInsertValueAtEnd(LLVMDIBuilderRef D, LLVMValueRef Val,
134 uint64_t Offset,
135134 LLVMMetadataRef VarInfo,
136135 LLVMMetadataRef Expr,
137136 LLVMBasicBlockRef Block);
532532
533533 // InsertValueAtEnd inserts a call to llvm.dbg.value at the end of the
534534 // specified basic block for the given value and associated debug metadata.
535 func (d *DIBuilder) InsertValueAtEnd(v Value, diVarInfo, expr Metadata, offset uint64, bb BasicBlock) Value {
536 result := C.LLVMDIBuilderInsertValueAtEnd(d.ref, v.C, C.uint64_t(offset), diVarInfo.C, expr.C, bb.C)
535 func (d *DIBuilder) InsertValueAtEnd(v Value, diVarInfo, expr Metadata, bb BasicBlock) Value {
536 result := C.LLVMDIBuilderInsertValueAtEnd(d.ref, v.C, diVarInfo.C, expr.C, bb.C)
537537 return Value{C: result}
538538 }
539539