Commit r331416 breaks the big-endian PPC bot. On the big endian build, we
[llvm-core.git] / include / llvm-c / Support.h
blob37d5d72ff5dca3395f902d70c61377170bc9dc31
1 /*===-- llvm-c/Support.h - Support C Interface --------------------*- C -*-===*\
2 |* *|
3 |* The LLVM Compiler Infrastructure *|
4 |* *|
5 |* This file is distributed under the University of Illinois Open Source *|
6 |* License. See LICENSE.TXT for details. *|
7 |* *|
8 |*===----------------------------------------------------------------------===*|
9 |* *|
10 |* This file defines the C interface to the LLVM support library. *|
11 |* *|
12 \*===----------------------------------------------------------------------===*/
14 #ifndef LLVM_C_SUPPORT_H
15 #define LLVM_C_SUPPORT_H
17 #include "llvm-c/DataTypes.h"
18 #include "llvm-c/Types.h"
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
24 /**
25 * This function permanently loads the dynamic library at the given path.
26 * It is safe to call this function multiple times for the same library.
28 * @see sys::DynamicLibrary::LoadLibraryPermanently()
30 LLVMBool LLVMLoadLibraryPermanently(const char* Filename);
32 /**
33 * This function parses the given arguments using the LLVM command line parser.
34 * Note that the only stable thing about this function is its signature; you
35 * cannot rely on any particular set of command line arguments being interpreted
36 * the same way across LLVM versions.
38 * @see llvm::cl::ParseCommandLineOptions()
40 void LLVMParseCommandLineOptions(int argc, const char *const *argv,
41 const char *Overview);
43 /**
44 * This function will search through all previously loaded dynamic
45 * libraries for the symbol \p symbolName. If it is found, the address of
46 * that symbol is returned. If not, null is returned.
48 * @see sys::DynamicLibrary::SearchForAddressOfSymbol()
50 void *LLVMSearchForAddressOfSymbol(const char *symbolName);
52 /**
53 * This functions permanently adds the symbol \p symbolName with the
54 * value \p symbolValue. These symbols are searched before any
55 * libraries.
57 * @see sys::DynamicLibrary::AddSymbol()
59 void LLVMAddSymbol(const char *symbolName, void *symbolValue);
61 #ifdef __cplusplus
63 #endif
65 #endif