mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
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
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user