aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-07 17:12:36 +0000
committerChris Lattner <sabre@nondot.org>2006-07-07 17:12:36 +0000
commitadcbce0ad42a156ca0f9d9fc34c61a6d7c9277ac (patch)
tree679f382b0ea78fcb94687b1c9d79bb4166a83e6b /include/llvm/System
parentb26d39eae5b4ded34b1180e06edf62afe35ad3d2 (diff)
downloadexternal_llvm-adcbce0ad42a156ca0f9d9fc34c61a6d7c9277ac.zip
external_llvm-adcbce0ad42a156ca0f9d9fc34c61a6d7c9277ac.tar.gz
external_llvm-adcbce0ad42a156ca0f9d9fc34c61a6d7c9277ac.tar.bz2
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')
-rw-r--r--include/llvm/System/DynamicLibrary.h7
1 files changed, 4 insertions, 3 deletions
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