1 //===- linker.go - Bindings for linker ------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines bindings for the linker component.
12 //===----------------------------------------------------------------------===//
17 #include "llvm-c/Core.h"
18 #include "llvm-c/Linker.h"
24 func LinkModules(Dest
, Src Module
) error
{
25 failed
:= C
.LLVMLinkModules2(Dest
.C
, Src
.C
)
27 err
:= errors
.New("Linking failed")