[llvm-commits] CVS: llvm/include/llvm/System/DynamicLibrary.h

Chris Lattner lattner at cs.uiuc.edu
Fri Jul 7 10:12:03 PDT 2006



Changes in directory llvm/include/llvm/System:

DynamicLibrary.h updated: 1.6 -> 1.7
---
Log message:

Change LoadLibraryPermanently to not throw an exception.


---
Diffs of the changes:  (+4 -3)

 DynamicLibrary.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/System/DynamicLibrary.h
diff -u llvm/include/llvm/System/DynamicLibrary.h:1.6 llvm/include/llvm/System/DynamicLibrary.h:1.7
--- llvm/include/llvm/System/DynamicLibrary.h:1.6	Fri May 19 14:07:54 2006
+++ llvm/include/llvm/System/DynamicLibrary.h	Fri Jul  7 12:11:51 2006
@@ -65,10 +65,11 @@
     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






More information about the llvm-commits mailing list