Skip to content

Commit 4b7545a

Browse files
committed
LLVMSupport: partially backport 6613f4a
This partially backports the API changes from 6613f4a to accommodate the plugin loading support for Swift Macros.
1 parent 299c632 commit 4b7545a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/include/llvm/Support/DynamicLibrary.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ class DynamicLibrary {
4545
/// Returns true if the object refers to a valid library.
4646
bool isValid() const { return Data != &Invalid; }
4747

48+
/// Return the OS specific handle value.
49+
void *getOSSpecificHandle() const { return Data; }
50+
4851
/// Searches through the library for the symbol \p symbolName. If it is
4952
/// found, the address of that symbol is returned. If not, NULL is returned.
5053
/// Note that NULL will also be returned if the library failed to load.

0 commit comments

Comments
 (0)