summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-07 18:01:58 +0000
committerChris Lattner <sabre@nondot.org>2009-07-07 18:01:58 +0000
commit5ceb2cb005e295892988c213665062e01344f1c8 (patch)
treec5ed86f3bc939395015e7ddff727a781fd7bc525 /llvm/lib
parent0878f15fa1852792cf953399999974ebc4842872 (diff)
downloadbcm5719-llvm-5ceb2cb005e295892988c213665062e01344f1c8.tar.gz
bcm5719-llvm-5ceb2cb005e295892988c213665062e01344f1c8.zip
remove dead code, noone creates instances of "DynamicLibrary", so the ctor and dtor are dead.
llvm-svn: 74926
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/DynamicLibrary.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp
index 4260d192e85..b88d03f4943 100644
--- a/llvm/lib/System/DynamicLibrary.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud