summaryrefslogtreecommitdiffstats
path: root/bindings/go
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2015-03-02 18:59:38 +0000
committerJuergen Ributzka <juergen@apple.com>2015-03-02 18:59:38 +0000
commit0a5c3015f8335e2c074074892c0a1e8395b68651 (patch)
tree15022f75cc3a4cf057ba03da7dfc421218ce207b /bindings/go
parente8676a29bb653bdbc4c9db37d2dbdab2a687c175 (diff)
Restore LLVMLinkModules C API until it is properly deprecated.
Add the enum "LLVMLinkerMode" back for backwards-compatibility and add the linker mode parameter back to the "LLVMLinkModules" function. The paramter is ignored and has no effect. Patch provided by: Filip Pizlo Reviewed by: Rafael and Sean git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/go')
-rw-r--r--bindings/go/llvm/linker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/go/llvm/linker.go b/bindings/go/llvm/linker.go
index 64d794efb94e..f64f66c858e8 100644
--- a/bindings/go/llvm/linker.go
+++ b/bindings/go/llvm/linker.go
@@ -22,7 +22,7 @@ import "errors"
func LinkModules(Dest, Src Module) error {
var cmsg *C.char
- failed := C.LLVMLinkModules(Dest.C, Src.C, 0, &cmsg)
+ failed := C.LLVMLinkModules(Dest.C, Src.C, C.LLVMLinkerDestroySource, &cmsg)
if failed != 0 {
err := errors.New(C.GoString(cmsg))
C.LLVMDisposeMessage(cmsg)