mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
[llvm-c] Expose LLVMLoadLibraryPermanently
Original patch by Chris Wailes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include "llvm/Config/config.h"
|
||||
#include "llvm/Support/Mutex.h"
|
||||
#include "llvm-c/Core.h"
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
@@ -169,3 +170,11 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char *symbolName) {
|
||||
}
|
||||
|
||||
#endif // LLVM_ON_WIN32
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// C API.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
LLVMBool LLVMLoadLibraryPermanently(const char* Filename) {
|
||||
return sys::DynamicLibrary::LoadLibraryPermanently(Filename);
|
||||
}
|
Reference in New Issue
Block a user