diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-07 17:12:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-07 17:12:36 +0000 |
commit | adcbce0ad42a156ca0f9d9fc34c61a6d7c9277ac (patch) | |
tree | 679f382b0ea78fcb94687b1c9d79bb4166a83e6b /include/llvm/System/DynamicLibrary.h | |
parent | b26d39eae5b4ded34b1180e06edf62afe35ad3d2 (diff) |
Change LoadLibraryPermanently to not throw an exception.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System/DynamicLibrary.h')
-rw-r--r-- | include/llvm/System/DynamicLibrary.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/System/DynamicLibrary.h b/include/llvm/System/DynamicLibrary.h index f90126c736..e053daf440 100644 --- a/include/llvm/System/DynamicLibrary.h +++ b/include/llvm/System/DynamicLibrary.h @@ -65,10 +65,11 @@ namespace sys { public: /// This function allows a library to be loaded without instantiating a /// DynamicLibrary object. Consequently, it is marked as being permanent - /// and will only be unloaded when the program terminates. - /// @throws std::string on error. + /// and will only be unloaded when the program terminates. This returns + /// false on success or returns true and fills in *ErrMsg on failure. /// @brief Open a dynamic library permanently. - static void LoadLibraryPermanently(const char* filename); + static bool LoadLibraryPermanently(const char* filename, + std::string *ErrMsg = 0); /// This function will search through all previously loaded dynamic /// libraries for the symbol \p symbolName. If it is found, the addressof |