LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions | Variables
DynamicLibrary.cpp File Reference
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Config/config.h"
#include "llvm/Support/Mutex.h"
#include "llvm-c/Support.h"
#include <cstdio>
#include <cstring>
#include <dlfcn.h>
Include dependency graph for DynamicLibrary.cpp:

Go to the source code of this file.

Namespaces

 llvm
 List of target independent CodeGen pass IDs.
 

Macros

#define EXPLICIT_SYMBOL(SYM)   if (!strcmp(symbolName, #SYM)) return &SYM
 

Functions

void * llvm::SearchForAddressOfSpecialSymbol (const char *symbolName)
 
LLVMBool LLVMLoadLibraryPermanently (const char *Filename)
 

Variables

static llvm::ManagedStatic
< llvm::StringMap< void * > > 
ExplicitSymbols
 
static llvm::ManagedStatic
< llvm::sys::SmartMutex< true > > 
SymbolsMutex
 
static DenseSet< void * > * OpenedHandles = 0
 

Macro Definition Documentation

#define EXPLICIT_SYMBOL (   SYM)    if (!strcmp(symbolName, #SYM)) return &SYM

Function Documentation

LLVMBool LLVMLoadLibraryPermanently ( const char *  Filename)

This function permanently loads the dynamic library at the given path. It is safe to call this function multiple times for the same library.

See Also
sys::DynamicLibrary::LoadLibraryPermanently()

Definition at line 178 of file DynamicLibrary.cpp.

References llvm::sys::DynamicLibrary::LoadLibraryPermanently().

Variable Documentation

llvm::ManagedStatic<llvm::StringMap<void *> > ExplicitSymbols
static

Definition at line 27 of file DynamicLibrary.cpp.

DenseSet<void *>* OpenedHandles = 0
static

Definition at line 28 of file DynamicLibrary.cpp.