update interface

llvm-svn: 22498
diff --git a/llvm/lib/Target/PowerPC/PPC32JITInfo.cpp b/llvm/lib/Target/PowerPC/PPC32JITInfo.cpp
index 416b425..289a3d6 100644
--- a/llvm/lib/Target/PowerPC/PPC32JITInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32JITInfo.cpp
@@ -188,7 +188,7 @@
 
 
 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 cbbfa9f..e2760d0 100644
--- a/llvm/lib/Target/PowerPC/PPC32JITInfo.h
+++ b/llvm/lib/Target/PowerPC/PPC32JITInfo.h
@@ -27,7 +27,7 @@
     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 8b3bd56..c1a366b 100644
--- a/llvm/lib/Target/SparcV9/SparcV9JITInfo.cpp
+++ b/llvm/lib/Target/SparcV9/SparcV9JITInfo.cpp
@@ -323,7 +323,7 @@
 }
 
 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 09544d9..a72e82d 100644
--- a/llvm/lib/Target/SparcV9/SparcV9JITInfo.h
+++ b/llvm/lib/Target/SparcV9/SparcV9JITInfo.h
@@ -55,7 +55,7 @@
     /// 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 3b03308..351d4be 100644
--- a/llvm/lib/Target/X86/X86JITInfo.cpp
+++ b/llvm/lib/Target/X86/X86JITInfo.cpp
@@ -174,7 +174,7 @@
 /// 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 696d960..2d2f056 100644
--- a/llvm/lib/Target/X86/X86JITInfo.h
+++ b/llvm/lib/Target/X86/X86JITInfo.h
@@ -50,7 +50,7 @@
     /// 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);
   };
 }