aboutsummaryrefslogtreecommitdiff
path: root/lib/System/DynamicLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/DynamicLibrary.cpp')
-rw-r--r--lib/System/DynamicLibrary.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp
index bdbcbd406f..7af718d490 100644
--- a/lib/System/DynamicLibrary.cpp
+++ b/lib/System/DynamicLibrary.cpp
@@ -50,7 +50,7 @@ using namespace llvm::sys;
//static std::vector<lt_dlhandle> OpenedHandles;
static std::vector<void *> OpenedHandles;
-DynamicLibrary::DynamicLibrary() : handle(0) {}
+DynamicLibrary::DynamicLibrary() {}
DynamicLibrary::~DynamicLibrary() {
while(!OpenedHandles.empty()) {
@@ -158,11 +158,6 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
return 0;
}
-void *DynamicLibrary::GetAddressOfSymbol(const char *symbolName) {
- assert(handle != 0 && "Invalid DynamicLibrary handle");
- return dlsym(handle, symbolName);
-}
-
#endif // LLVM_ON_WIN32
DEFINING_FILE_FOR(SystemDynamicLibrary)