Skip to content

5.9 LLVMSupport: partially backport 6613f4aff85b24a13d4f5f7e9cd24bf3f44037a3 #7399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions llvm/include/llvm/Support/DynamicLibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class DynamicLibrary {
/// Returns true if the object refers to a valid library.
bool isValid() const { return Data != &Invalid; }

/// Return the OS specific handle value.
void *getOSSpecificHandle() const { return Data; }

/// Searches through the library for the symbol \p symbolName. If it is
/// found, the address of that symbol is returned. If not, NULL is returned.
/// Note that NULL will also be returned if the library failed to load.
Expand Down