update interface
authorAndrew Lenharth <andrewl@lenharth.org>
Fri, 22 Jul 2005 20:49:37 +0000 (20:49 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Fri, 22 Jul 2005 20:49:37 +0000 (20:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22498 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPC32JITInfo.h
lib/Target/PowerPC/PPCJITInfo.cpp
lib/Target/SparcV9/SparcV9JITInfo.cpp
lib/Target/SparcV9/SparcV9JITInfo.h
lib/Target/X86/X86JITInfo.cpp
lib/Target/X86/X86JITInfo.h

index cbbfa9fc7c200f01a5e0dab93c2569c2df15f160..e2760d0ebbf856b55410daae65ab08769a6bb47a 100644 (file)
@@ -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
index 416b4254017c46e7074c4a89aca5d3e04d0f16d7..289a3d630b41c555853cf634a46ece8662b78ed5 100644 (file)
@@ -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();
index 8b3bd56993d8c380c9fbfa7b0d1eb16dc839f256..c1a366ba415c6d162622a17afd9d99b4f5abc8ca 100644 (file)
@@ -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();
index 09544d9d9d457aaf946bfd580750ba7749362b69..a72e82d5b03184605527f9aafab6a507a416220d 100644 (file)
@@ -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);
   };
 }
 
index 3b03308bb9d0338477303b90b5b49d6807cae9ef..351d4bee5fa9b08398d10249e1fae65f24ecdc1b 100644 (file)
@@ -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();
index 696d9600f794a55c410a24067d789e86b81b56e0..2d2f056fe5e07652bfe3320c0e09b242d1b943ff 100644 (file)
@@ -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);
   };
 }