1 //===- SupportBindings.h - Additional bindings for Support ------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines additional C bindings for the Support component.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_BINDINGS_GO_LLVM_SUPPORTBINDINGS_H
14 #define LLVM_BINDINGS_GO_LLVM_SUPPORTBINDINGS_H
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 // This function duplicates the LLVMLoadLibraryPermanently function in the
21 // stable C API and adds an extra ErrMsg parameter to retrieve the error
22 // message.
23 void LLVMLoadLibraryPermanently2(const char *Filename, char **ErrMsg);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif
30