From adcbce0ad42a156ca0f9d9fc34c61a6d7c9277ac Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 7 Jul 2006 17:12:36 +0000 Subject: Change LoadLibraryPermanently to not throw an exception. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29048 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/System/DynamicLibrary.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/llvm/System') diff --git a/include/llvm/System/DynamicLibrary.h b/include/llvm/System/DynamicLibrary.h index f90126c..e053daf 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 -- cgit v1.1