summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-07-22 20:49:37 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-07-22 20:49:37 +0000
commit111e5e6490c681ebb619deb2bdd2b8b5e274b55f (patch)
tree69f381cb75e96ecb629726e8af61edd7ab898b41 /llvm/lib
parent940b07c7fa39be0ace6db8901aede48ace7869b8 (diff)
downloadbcm5719-llvm-111e5e6490c681ebb619deb2bdd2b8b5e274b55f.tar.gz
bcm5719-llvm-111e5e6490c681ebb619deb2bdd2b8b5e274b55f.zip
update interface
llvm-svn: 22498
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32JITInfo.cpp2
-rw-r--r--llvm/lib/Target/PowerPC/PPC32JITInfo.h2
-rw-r--r--llvm/lib/Target/SparcV9/SparcV9JITInfo.cpp2
-rw-r--r--llvm/lib/Target/SparcV9/SparcV9JITInfo.h2
-rw-r--r--llvm/lib/Target/X86/X86JITInfo.cpp2
-rw-r--r--llvm/lib/Target/X86/X86JITInfo.h2
6 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32JITInfo.cpp b/llvm/lib/Target/PowerPC/PPC32JITInfo.cpp
index 416b4254017..289a3d630b4 100644
--- a/llvm/lib/Target/PowerPC/PPC32JITInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32JITInfo.cpp
@@ -188,7 +188,7 @@ void *PPC32JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
void PPC32JITInfo::relocate(void *Function, MachineRelocation *MR,
- unsigned NumRelocs) {
+ unsigned NumRelocs, unsigned char* GOTBase) {
for (unsigned i = 0; i != NumRelocs; ++i, ++MR) {
unsigned *RelocPos = (unsigned*)Function + MR->getMachineCodeOffset()/4;
intptr_t ResultPtr = (intptr_t)MR->getResultPointer();
diff --git a/llvm/lib/Target/PowerPC/PPC32JITInfo.h b/llvm/lib/Target/PowerPC/PPC32JITInfo.h
index cbbfa9fc7c2..e2760d0ebbf 100644
--- a/llvm/lib/Target/PowerPC/PPC32JITInfo.h
+++ b/llvm/lib/Target/PowerPC/PPC32JITInfo.h
@@ -27,7 +27,7 @@ namespace llvm {
virtual void *emitFunctionStub(void *Fn, MachineCodeEmitter &MCE);
virtual LazyResolverFn getLazyResolverFunction(JITCompilerFn);
virtual void relocate(void *Function, MachineRelocation *MR,
- unsigned NumRelocs);
+ unsigned NumRelocs, unsigned char* GOTBase);
/// replaceMachineCodeForFunction - Make it so that calling the function
/// whose machine code is at OLD turns into a call to NEW, perhaps by
diff --git a/llvm/lib/Target/SparcV9/SparcV9JITInfo.cpp b/llvm/lib/Target/SparcV9/SparcV9JITInfo.cpp
index 8b3bd56993d..c1a366ba415 100644
--- a/llvm/lib/Target/SparcV9/SparcV9JITInfo.cpp
+++ b/llvm/lib/Target/SparcV9/SparcV9JITInfo.cpp
@@ -323,7 +323,7 @@ SparcV9JITInfo::getLazyResolverFunction(JITCompilerFn F) {
}
void SparcV9JITInfo::relocate(void *Function, MachineRelocation *MR,
- unsigned NumRelocs) {
+ unsigned NumRelocs, unsigned char* GOTBase) {
for (unsigned i = 0; i != NumRelocs; ++i, ++MR) {
unsigned *RelocPos = (unsigned*)Function + MR->getMachineCodeOffset()/4;
intptr_t ResultPtr = (intptr_t)MR->getResultPointer();
diff --git a/llvm/lib/Target/SparcV9/SparcV9JITInfo.h b/llvm/lib/Target/SparcV9/SparcV9JITInfo.h
index 09544d9d9d4..a72e82d5b03 100644
--- a/llvm/lib/Target/SparcV9/SparcV9JITInfo.h
+++ b/llvm/lib/Target/SparcV9/SparcV9JITInfo.h
@@ -55,7 +55,7 @@ namespace llvm {
/// it must rewrite the code to contain the actual addresses of any
/// referenced global symbols.
virtual void relocate(void *Function, MachineRelocation *MR,
- unsigned NumRelocs);
+ unsigned NumRelocs, unsigned char* GOTBase);
};
}
diff --git a/llvm/lib/Target/X86/X86JITInfo.cpp b/llvm/lib/Target/X86/X86JITInfo.cpp
index 3b03308bb9d..351d4bee5fa 100644
--- a/llvm/lib/Target/X86/X86JITInfo.cpp
+++ b/llvm/lib/Target/X86/X86JITInfo.cpp
@@ -174,7 +174,7 @@ void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
/// it must rewrite the code to contain the actual addresses of any
/// referenced global symbols.
void X86JITInfo::relocate(void *Function, MachineRelocation *MR,
- unsigned NumRelocs) {
+ unsigned NumRelocs, unsigned char* GOTBase) {
for (unsigned i = 0; i != NumRelocs; ++i, ++MR) {
void *RelocPos = (char*)Function + MR->getMachineCodeOffset();
intptr_t ResultPtr = (intptr_t)MR->getResultPointer();
diff --git a/llvm/lib/Target/X86/X86JITInfo.h b/llvm/lib/Target/X86/X86JITInfo.h
index 696d9600f79..2d2f056fe5e 100644
--- a/llvm/lib/Target/X86/X86JITInfo.h
+++ b/llvm/lib/Target/X86/X86JITInfo.h
@@ -50,7 +50,7 @@ namespace llvm {
/// it must rewrite the code to contain the actual addresses of any
/// referenced global symbols.
virtual void relocate(void *Function, MachineRelocation *MR,
- unsigned NumRelocs);
+ unsigned NumRelocs, unsigned char* GOTBase);
};
}
OpenPOWER on IntegriCloud