aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-20 04:14:44 +0000
committerChris Lattner <sabre@nondot.org>2004-11-20 04:14:44 +0000
commita8b0fa5172dc46f53cf8b8ef1aa9c9b4e70ff998 (patch)
tree784f947c03cbd58f84bda614f6b79e0358e4decc
parent5be478f360b4c632d1adfccc64df87840e1ccfc1 (diff)
getJITStubForFunction is optional and unimplemented, just remove it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18036 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPC32JITInfo.h6
-rw-r--r--lib/Target/PowerPC/PPC64CodeEmitter.cpp6
-rw-r--r--lib/Target/PowerPC/PPC64JITInfo.h6
-rw-r--r--lib/Target/PowerPC/PPCCodeEmitter.cpp5
4 files changed, 0 insertions, 23 deletions
diff --git a/lib/Target/PowerPC/PPC32JITInfo.h b/lib/Target/PowerPC/PPC32JITInfo.h
index 96fd389bb2..5c82d21a69 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 d35ddde4b1..06f422c3d5 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 cf553f4c11..06ecffe846 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 e567788067..5f810cb368 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();