diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-07 18:01:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-07 18:01:58 +0000 |
commit | 72501b4a2138fcb32f8a6d71054bb1139d8b04b5 (patch) | |
tree | f4b929ef602e5d425317723c7bbc7d7562e3c6cb /lib/System | |
parent | ddb03d831be02323e10b17328f715c0c5ffe3e02 (diff) | |
download | external_llvm-72501b4a2138fcb32f8a6d71054bb1139d8b04b5.zip external_llvm-72501b4a2138fcb32f8a6d71054bb1139d8b04b5.tar.gz external_llvm-72501b4a2138fcb32f8a6d71054bb1139d8b04b5.tar.bz2 |
remove dead code, noone creates instances of "DynamicLibrary", so the ctor and dtor are dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r-- | lib/System/DynamicLibrary.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp index 4260d19..b88d03f 100644 --- a/lib/System/DynamicLibrary.cpp +++ b/lib/System/DynamicLibrary.cpp @@ -18,6 +18,7 @@ #include <cstdio> #include <cstring> #include <map> +#include <vector> // Collection of symbol name/value pairs to be searched prior to any libraries. static std::map<std::string, void*> symbols; @@ -47,16 +48,6 @@ using namespace llvm::sys; static std::vector<void *> OpenedHandles; -DynamicLibrary::DynamicLibrary() {} - -DynamicLibrary::~DynamicLibrary() { - SmartScopedWriter<true> Writer(&SymbolsLock); - while(!OpenedHandles.empty()) { - void *H = OpenedHandles.back(); - OpenedHandles.pop_back(); - dlclose(H); - } -} bool DynamicLibrary::LoadLibraryPermanently(const char *Filename, std::string *ErrMsg) { |