diff --git a/llvm/include/llvm/Support/DynamicLibrary.h b/llvm/include/llvm/Support/DynamicLibrary.h index 0771606a75f56..6e4022f8dac26 100644 --- a/llvm/include/llvm/Support/DynamicLibrary.h +++ b/llvm/include/llvm/Support/DynamicLibrary.h @@ -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.