diff options
Diffstat (limited to 'bindings/go/llvm/IRBindings.cpp')
| -rw-r--r-- | bindings/go/llvm/IRBindings.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/go/llvm/IRBindings.cpp b/bindings/go/llvm/IRBindings.cpp index fd0cb8006a4fe..4308f84cc1bea 100644 --- a/bindings/go/llvm/IRBindings.cpp +++ b/bindings/go/llvm/IRBindings.cpp @@ -98,3 +98,7 @@ void LLVMSetCurrentDebugLocation2(LLVMBuilderRef Bref, unsigned Line, DebugLoc::get(Line, Col, Scope ? unwrap<MDNode>(Scope) : nullptr, InlinedAt ? unwrap<MDNode>(InlinedAt) : nullptr)); } + +void LLVMSetSubprogram(LLVMValueRef Func, LLVMMetadataRef SP) { + unwrap<Function>(Func)->setSubprogram(unwrap<DISubprogram>(SP)); +} |
