1 //go:build !purego
2 3 //===- SupportBindings.h - Additional bindings for Support ------*- C++ -*-===//
4 //
5 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6 // See https://llvm.org/LICENSE.txt for license information.
7 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //
9 //===----------------------------------------------------------------------===//
10 //
11 // This file defines additional C bindings for the Support component.
12 //
13 //===----------------------------------------------------------------------===//
14 15 #ifndef LLVM_BINDINGS_GO_LLVM_SUPPORTBINDINGS_H
16 #define LLVM_BINDINGS_GO_LLVM_SUPPORTBINDINGS_H
17 18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 22 // This function duplicates the LLVMLoadLibraryPermanently function in the
23 // stable C API and adds an extra ErrMsg parameter to retrieve the error
24 // message.
25 void LLVMLoadLibraryPermanently2(const char *Filename, char **ErrMsg);
26 27 #ifdef __cplusplus
28 }
29 #endif
30 31 #endif
32