Use System/DynamicLibrary instead of Support/DynamicLinker

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2004-11-29 14:11:29 +00:00
parent 737459df79
commit df5a37efc9
4 changed files with 20 additions and 12 deletions
+2 -2
View File
@@ -16,7 +16,7 @@
//===----------------------------------------------------------------------===//
#include "JIT.h"
#include "llvm/Support/DynamicLinker.h"
#include "llvm/System/DynamicLibrary.h"
#include <iostream>
#include <sys/stat.h>
using namespace llvm;
@@ -96,7 +96,7 @@ void *JIT::getPointerToNamedFunction(const std::string &Name) {
if (Name == "__main") return (void*)&__mainFunc;
// If it's an external function, look it up in the process image...
void *Ptr = GetAddressOfSymbol(Name);
void *Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(Name);
if (Ptr) return Ptr;
std::cerr << "ERROR: Program used external function '" << Name