diff --git a/lib/Target/PowerPC/PPC32JITInfo.h b/lib/Target/PowerPC/PPC32JITInfo.h index 96fd389bb2f..5c82d21a698 100644 --- a/lib/Target/PowerPC/PPC32JITInfo.h +++ b/lib/Target/PowerPC/PPC32JITInfo.h @@ -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); }; } diff --git a/lib/Target/PowerPC/PPC64CodeEmitter.cpp b/lib/Target/PowerPC/PPC64CodeEmitter.cpp index d35ddde4b15..06f422c3d50 100644 --- a/lib/Target/PowerPC/PPC64CodeEmitter.cpp +++ b/lib/Target/PowerPC/PPC64CodeEmitter.cpp @@ -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"); } diff --git a/lib/Target/PowerPC/PPC64JITInfo.h b/lib/Target/PowerPC/PPC64JITInfo.h index cf553f4c112..06ecffe846e 100644 --- a/lib/Target/PowerPC/PPC64JITInfo.h +++ b/lib/Target/PowerPC/PPC64JITInfo.h @@ -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); }; } diff --git a/lib/Target/PowerPC/PPCCodeEmitter.cpp b/lib/Target/PowerPC/PPCCodeEmitter.cpp index e567788067c..5f810cb368f 100644 --- a/lib/Target/PowerPC/PPCCodeEmitter.cpp +++ b/lib/Target/PowerPC/PPCCodeEmitter.cpp @@ -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();