File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -1154,7 +1154,7 @@ ORC JIT
1154
1154
Support
1155
1155
-------
1156
1156
1157
- - [ ] LLVMLoadLibraryPermanently
1158
- - [ ] LLVMParseCommandLineOptions
1159
- - [ ] LLVMSearchForAddressOfSymbol
1160
- - [ ] LLVMAddSymbol
1157
+ - [x ] LLVMLoadLibraryPermanently
1158
+ - [x ] LLVMParseCommandLineOptions
1159
+ - [x ] LLVMSearchForAddressOfSymbol
1160
+ - [x ] LLVMAddSymbol
Original file line number Diff line number Diff line change @@ -4,3 +4,26 @@ function clopts(opts...)
4
4
args = [" " , opts... ]
5
5
API. LLVMParseCommandLineOptions (length (args), args, C_NULL )
6
6
end
7
+
8
+ """
9
+ add_symbol(name, ptr)
10
+
11
+ Permanently add the symbol `name` with the value `ptr`. These symbols are searched
12
+ before any libraries.
13
+ """
14
+ add_symbol (name, ptr) = LLVM. API. LLVMAddSymbol (name, ptr)
15
+
16
+ """
17
+ load_library_permantly(path)
18
+
19
+ This function permanently loads the dynamic library at the given path.
20
+ It is safe to call this function multiple times for the same library.
21
+ """
22
+ load_library_permantly (path) = LLVM. API. LLVMLoadLibraryPermanently (path)
23
+
24
+ """
25
+ find_symbol(name)
26
+
27
+ Search the global symbols for `name` and return the pointer to it.
28
+ """
29
+ find_symbol (name) = LLVM. API. LLVMSearchForAddressOfSymbol (name)
You can’t perform that action at this time.
0 commit comments