14 #ifndef LLVM_SYSTEM_DYNAMICLIBRARY_H
15 #define LLVM_SYSTEM_DYNAMICLIBRARY_H
49 bool isValid() {
return Data != &Invalid; }
68 std::string *errMsg = 0);
76 std::string *ErrMsg = 0) {
104 #endif // LLVM_SYSTEM_DYNAMIC_LIBRARY_H
static void * SearchForAddressOfSymbol(const char *symbolName)
Search through libraries for address of a symbol.
static void * SearchForAddressOfSymbol(const std::string &symbolName)
Convenience function for C++ophiles.
void * getAddressOfSymbol(const char *symbolName)
static void AddSymbol(StringRef symbolName, void *symbolValue)
Add searchable symbol/value pair.
static bool LoadLibraryPermanently(const char *Filename, std::string *ErrMsg=0)
bool isValid()
Returns true if the object refers to a valid library.
static DynamicLibrary getPermanentLibrary(const char *filename, std::string *errMsg=0)
Open a dynamic library permanently.
const StringRef filename(StringRef path)
Get filename.