Path: blob/main/contrib/llvm-project/llvm/include/llvm-c/Support.h
35233 views
/*===-- llvm-c/Support.h - Support C Interface --------------------*- C -*-===*\1|* *|2|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|3|* 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 the C interface to the LLVM support library. *|10|* *|11\*===----------------------------------------------------------------------===*/1213#ifndef LLVM_C_SUPPORT_H14#define LLVM_C_SUPPORT_H1516#include "llvm-c/DataTypes.h"17#include "llvm-c/ExternC.h"18#include "llvm-c/Types.h"1920LLVM_C_EXTERN_C_BEGIN2122/**23* @addtogroup LLVMCCore24*25* @{26*/2728/**29* This function permanently loads the dynamic library at the given path.30* It is safe to call this function multiple times for the same library.31*32* @see sys::DynamicLibrary::LoadLibraryPermanently()33*/34LLVMBool LLVMLoadLibraryPermanently(const char* Filename);3536/**37* This function parses the given arguments using the LLVM command line parser.38* Note that the only stable thing about this function is its signature; you39* cannot rely on any particular set of command line arguments being interpreted40* the same way across LLVM versions.41*42* @see llvm::cl::ParseCommandLineOptions()43*/44void LLVMParseCommandLineOptions(int argc, const char *const *argv,45const char *Overview);4647/**48* This function will search through all previously loaded dynamic49* libraries for the symbol \p symbolName. If it is found, the address of50* that symbol is returned. If not, null is returned.51*52* @see sys::DynamicLibrary::SearchForAddressOfSymbol()53*/54void *LLVMSearchForAddressOfSymbol(const char *symbolName);5556/**57* This functions permanently adds the symbol \p symbolName with the58* value \p symbolValue. These symbols are searched before any59* libraries.60*61* @see sys::DynamicLibrary::AddSymbol()62*/63void LLVMAddSymbol(const char *symbolName, void *symbolValue);6465/**66* @}67*/6869LLVM_C_EXTERN_C_END7071#endif727374