aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2013-11-06 09:21:31 +0000
committerPeter Zotov <whitequark@whitequark.org>2013-11-06 09:21:31 +0000
commit87265f9792a59b7107bd30fb6f114f5ce5e1273c (patch)
tree406b4a43ab45083b7b80ff75a4d8ea573edb957b /lib/Support
parentec7270c966b4a49840b1801bfbb11977d76cb333 (diff)
downloadexternal_llvm-87265f9792a59b7107bd30fb6f114f5ce5e1273c.zip
external_llvm-87265f9792a59b7107bd30fb6f114f5ce5e1273c.tar.gz
external_llvm-87265f9792a59b7107bd30fb6f114f5ce5e1273c.tar.bz2
[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
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/DynamicLibrary.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Support/DynamicLibrary.cpp b/lib/Support/DynamicLibrary.cpp
index c063f53..f58a1f1 100644
--- a/lib/Support/DynamicLibrary.cpp
+++ b/lib/Support/DynamicLibrary.cpp
@@ -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);
+} \ No newline at end of file