diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-29 14:11:29 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-29 14:11:29 +0000 |
commit | df5a37efc997288da520ff4889443e3560d95387 (patch) | |
tree | 0120003413414b0b13237bc85ea7432513c8d047 /lib/ExecutionEngine/JIT | |
parent | 737459df795e9a83835d1c69bd6e2ec4389b1534 (diff) | |
download | external_llvm-df5a37efc997288da520ff4889443e3560d95387.zip external_llvm-df5a37efc997288da520ff4889443e3560d95387.tar.gz external_llvm-df5a37efc997288da520ff4889443e3560d95387.tar.bz2 |
Use System/DynamicLibrary instead of Support/DynamicLinker
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT')
-rw-r--r-- | lib/ExecutionEngine/JIT/Intercept.cpp | 4 | ||||
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp index 2eafb75..93d349f 100644 --- a/lib/ExecutionEngine/JIT/Intercept.cpp +++ b/lib/ExecutionEngine/JIT/Intercept.cpp @@ -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 diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index 56625d6..537ca56 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -22,9 +22,9 @@ #include "llvm/CodeGen/MachineCodeEmitter.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/ExecutionEngine/GenericValue.h" +#include "llvm/System/DynamicLibrary.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetJITInfo.h" -#include "llvm/Support/DynamicLinker.h" #include <iostream> using namespace llvm; @@ -287,7 +287,7 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) { // If the global is external, just remember the address. if (GV->isExternal()) { - Ptr = GetAddressOfSymbol(GV->getName().c_str()); + Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(GV->getName().c_str()); if (Ptr == 0) { std::cerr << "Could not resolve external global address: " << GV->getName() << "\n"; |