getJITStubForFunction is optional and unimplemented, just remove it.
authorChris Lattner <sabre@nondot.org>
Sat, 20 Nov 2004 04:14:44 +0000 (04:14 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 20 Nov 2004 04:14:44 +0000 (04:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18036 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPC32JITInfo.h
lib/Target/PowerPC/PPC64CodeEmitter.cpp
lib/Target/PowerPC/PPC64JITInfo.h
lib/Target/PowerPC/PPCCodeEmitter.cpp

index 96fd389bb2f430e56d72c3b229f3955fdeefb843..5c82d21a698c672d4ad9152728889eaa6d7cbc4d 100644 (file)
@@ -30,12 +30,6 @@ namespace llvm {
     /// code.
     ///
     virtual void replaceMachineCodeForFunction(void *Old, void *New);
-    
-    /// getJITStubForFunction - Create or return a stub for the specified
-    /// function.  This stub acts just like the specified function, except that
-    /// it allows the "address" of the function to be taken without having to
-    /// generate code for it.
-    virtual void *getJITStubForFunction(Function *F, MachineCodeEmitter &MCE);
   };
 }
 
index d35ddde4b159136cf6bbb7865edc1efde5f188c5..06f422c3d5042466ffb918f40c7820710f1b84fd 100644 (file)
@@ -29,12 +29,6 @@ bool PPC64TargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
   // PM.add(createMachineCodeDeleter());
 }
 
-void *PPC64JITInfo::getJITStubForFunction(Function *F,
-                                           MachineCodeEmitter &MCE) {
-  assert (0 && "PPC64JITInfo::getJITStubForFunction not implemented");
-  return 0;
-}
-
 void PPC64JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
   assert (0 && "PPC64JITInfo::replaceMachineCodeForFunction not implemented");
 }
index cf553f4c112a7da25c16c632352f61b5eec4ffeb..06ecffe846e83ff33bee196524948af8eeac41ce 100644 (file)
@@ -29,12 +29,6 @@ namespace llvm {
     /// code.
     ///
     virtual void replaceMachineCodeForFunction(void *Old, void *New);
-    
-    /// getJITStubForFunction - Create or return a stub for the specified
-    /// function.  This stub acts just like the specified function, except that
-    /// it allows the "address" of the function to be taken without having to
-    /// generate code for it.
-    virtual void *getJITStubForFunction(Function *F, MachineCodeEmitter &MCE);
   };
 }
 
index e567788067c2999161a7a3ec53fc0eae1483f56e..5f810cb368f6f62ce2db1700cbb99e6c8f5250c6 100644 (file)
@@ -334,11 +334,6 @@ int64_t PPC32CodeEmitter::getMachineOpValue(MachineInstr &MI,
   return rv;
 }
 
-
-void *PPC32JITInfo::getJITStubForFunction(Function *F, MachineCodeEmitter &MCE){
-  return (void*)((unsigned long)getResolver(MCE).getLazyResolver(F));
-}
-
 void PPC32JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
   std::cerr << "PPC32JITInfo::replaceMachineCodeForFunction not implemented\n";
   abort();