diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-07 04:17:22 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-07 04:17:22 +0000 |
commit | c10719f55d3babe47ce754ad4e4964c7cd90d6e8 (patch) | |
tree | 28574fe7c646e03e6660387f3595f098d75fcd3f /llvm/include/llvm/Support/DynamicLibrary.h | |
parent | 093edf8c7f4d44979376892303d101f02924c68f (diff) | |
download | bcm5719-llvm-c10719f55d3babe47ce754ad4e4964c7cd90d6e8.tar.gz bcm5719-llvm-c10719f55d3babe47ce754ad4e4964c7cd90d6e8.zip |
[C++11] Make use of 'nullptr' in the Support library.
llvm-svn: 205697
Diffstat (limited to 'llvm/include/llvm/Support/DynamicLibrary.h')
-rw-r--r-- | llvm/include/llvm/Support/DynamicLibrary.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/DynamicLibrary.h b/llvm/include/llvm/Support/DynamicLibrary.h index 1e2d16ccbc8..de47be62a79 100644 --- a/llvm/include/llvm/Support/DynamicLibrary.h +++ b/llvm/include/llvm/Support/DynamicLibrary.h @@ -65,7 +65,7 @@ namespace sys { /// It is safe to call this function multiple times for the same library. /// @brief Open a dynamic library permanently. static DynamicLibrary getPermanentLibrary(const char *filename, - std::string *errMsg = 0); + std::string *errMsg = nullptr); /// This function permanently loads the dynamic library at the given path. /// Use this instead of getPermanentLibrary() when you won't need to get @@ -73,7 +73,7 @@ namespace sys { /// /// It is safe to call this function multiple times for the same library. static bool LoadLibraryPermanently(const char *Filename, - std::string *ErrMsg = 0) { + std::string *ErrMsg = nullptr) { return !getPermanentLibrary(Filename, ErrMsg).isValid(); } |