1 //===- linker.go - Bindings for linker ------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file defines bindings for the linker component.
11 //===----------------------------------------------------------------------===//
16 #include "llvm-c/Core.h"
17 #include "llvm-c/Linker.h"
23 func LinkModules(Dest
, Src Module
) error
{
24 failed
:= C
.LLVMLinkModules2(Dest
.C
, Src
.C
)
26 err
:= errors
.New("Linking failed")