[llvm-commits] CVS: reopt/lib/TraceJIT/TraceJIT.cpp TraceJITEmitter.cpp TraceJITIntercept.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Nov 29 14:52:48 PST 2004
Changes in directory reopt/lib/TraceJIT:
TraceJIT.cpp updated: 1.8 -> 1.9
TraceJITEmitter.cpp updated: 1.6 -> 1.7
TraceJITIntercept.cpp updated: 1.3 -> 1.4
---
Log message:
GetAddressOfSymbol got renamed to sys::DynamicLibrary::SearchForAddressOfSymbol
---
Diffs of the changes: (+7 -6)
Index: reopt/lib/TraceJIT/TraceJIT.cpp
diff -u reopt/lib/TraceJIT/TraceJIT.cpp:1.8 reopt/lib/TraceJIT/TraceJIT.cpp:1.9
--- reopt/lib/TraceJIT/TraceJIT.cpp:1.8 Mon Nov 8 14:59:39 2004
+++ reopt/lib/TraceJIT/TraceJIT.cpp Mon Nov 29 16:52:36 2004
@@ -31,7 +31,7 @@
#include "llvm/Target/TargetMachineRegistry.h"
#include "llvm/Target/TargetJITInfo.h"
#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/DynamicLinker.h"
+#include "llvm/System/DynamicLibrary.h"
#include "llvm/Support/Debug.h"
using namespace llvm;
@@ -199,7 +199,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";
Index: reopt/lib/TraceJIT/TraceJITEmitter.cpp
diff -u reopt/lib/TraceJIT/TraceJITEmitter.cpp:1.6 reopt/lib/TraceJIT/TraceJITEmitter.cpp:1.7
--- reopt/lib/TraceJIT/TraceJITEmitter.cpp:1.6 Mon Nov 29 01:35:58 2004
+++ reopt/lib/TraceJIT/TraceJITEmitter.cpp Mon Nov 29 16:52:36 2004
@@ -31,7 +31,7 @@
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetJITInfo.h"
#include "llvm/Support/Debug.h"
-#include "llvm/Support/DynamicLinker.h"
+#include "llvm/System/DynamicLibrary.h"
using namespace llvm;
namespace {
@@ -101,7 +101,8 @@
// return 0.
if (isa<Function>(V)) {
if (V->hasExternalLinkage () && V->hasName ()) {
- void *where = GetAddressOfSymbol (V->getName ());
+ void *where =
+ sys::DynamicLibrary::SearchForAddressOfSymbol(V->getName().c_str());
if (where)
return where;
}
Index: reopt/lib/TraceJIT/TraceJITIntercept.cpp
diff -u reopt/lib/TraceJIT/TraceJITIntercept.cpp:1.3 reopt/lib/TraceJIT/TraceJITIntercept.cpp:1.4
--- reopt/lib/TraceJIT/TraceJITIntercept.cpp:1.3 Thu Sep 2 11:55:45 2004
+++ reopt/lib/TraceJIT/TraceJITIntercept.cpp Mon Nov 29 16:52:36 2004
@@ -16,7 +16,7 @@
//===----------------------------------------------------------------------===//
#include "reopt/TraceJIT.h"
-#include "llvm/Support/DynamicLinker.h"
+#include "llvm/System/DynamicLibrary.h"
#include <iostream>
#include <sys/stat.h>
using namespace llvm;
@@ -87,5 +87,5 @@
if (Name == "atexit") return (void*)&jit_atexit;
// Try to look it up in the process image.
- return GetAddressOfSymbol(Name);
+ return sys::DynamicLibrary::SearchForAddressOfSymbol(Name.c_str());
}
More information about the llvm-commits
mailing list