[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/Intercept.cpp JIT.cpp

Reid Spencer reid at x10sys.com
Mon Nov 29 06:11:40 PST 2004



Changes in directory llvm/lib/ExecutionEngine/JIT:

Intercept.cpp updated: 1.17 -> 1.18
JIT.cpp updated: 1.48 -> 1.49
---
Log message:

Use System/DynamicLibrary instead of Support/DynamicLinker

---
Diffs of the changes:  (+4 -4)

Index: llvm/lib/ExecutionEngine/JIT/Intercept.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.17 llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.18
--- llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.17	Wed Sep  1 17:55:35 2004
+++ llvm/lib/ExecutionEngine/JIT/Intercept.cpp	Mon Nov 29 08:11:29 2004
@@ -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 @@
   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


Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.48 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.49
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.48	Sat Nov 20 17:51:03 2004
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Mon Nov 29 08:11:29 2004
@@ -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 @@
 
   // 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";






More information about the llvm-commits mailing list