summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-22 21:54:35 +0000
committerChris Lattner <sabre@nondot.org>2004-11-22 21:54:35 +0000
commitcf88d324a892c8f93ccdac55788afb48b17c728b (patch)
tree3968afb7fd5847a84753b6601bb214aed08cebf6
parent213c969c92ce8cffbc085429a5f4eb08a412d195 (diff)
downloadllvm-cf88d324a892c8f93ccdac55788afb48b17c728b.tar.gz
llvm-cf88d324a892c8f93ccdac55788afb48b17c728b.tar.bz2
llvm-cf88d324a892c8f93ccdac55788afb48b17c728b.tar.xz
Fix the FIXME, nuke the JIT specific forceCompilationOf method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18131 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineCodeEmitter.h7
-rw-r--r--lib/CodeGen/MachineCodeEmitter.cpp18
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp11
3 files changed, 0 insertions, 36 deletions
diff --git a/include/llvm/CodeGen/MachineCodeEmitter.h b/include/llvm/CodeGen/MachineCodeEmitter.h
index 1faac71217..562d4c695e 100644
--- a/include/llvm/CodeGen/MachineCodeEmitter.h
+++ b/include/llvm/CodeGen/MachineCodeEmitter.h
@@ -94,13 +94,6 @@ public:
//
virtual uint64_t getConstantPoolEntryAddress(unsigned Index) = 0;
- // forceCompilationOf - Force the compilation of the specified function, and
- // return its address, because we REALLY need the address now.
- //
- // FIXME: This is JIT specific!
- //
- virtual uint64_t forceCompilationOf(Function *F) = 0;
-
/// createDebugEmitter - Return a dynamically allocated machine
/// code emitter, which just prints the opcodes and fields out the cout. This
/// can be used for debugging users of the MachineCodeEmitter interface.
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp
index 3e955b0283..248b06a999 100644
--- a/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/lib/CodeGen/MachineCodeEmitter.cpp
@@ -54,15 +54,6 @@ namespace {
uint64_t getConstantPoolEntryAddress(unsigned Num) { return 0; }
uint64_t getCurrentPCValue() { return 0; }
uint64_t getCurrentPCOffset() { return 0; }
-
- // forceCompilationOf - Force the compilation of the specified function, and
- // return its address, because we REALLY need the address now.
- //
- // FIXME: This is JIT specific!
- //
- virtual uint64_t forceCompilationOf(Function *F) {
- return 0;
- }
};
class FilePrinterEmitter : public MachineCodeEmitter {
@@ -160,15 +151,6 @@ namespace {
void addRelocation(const MachineRelocation &MR) {
return MCE.addRelocation(MR);
}
-
- // forceCompilationOf - Force the compilation of the specified function, and
- // return its address, because we REALLY need the address now.
- //
- // FIXME: This is JIT specific!
- //
- virtual uint64_t forceCompilationOf(Function *F) {
- return MCE.forceCompilationOf(F);
- }
};
}
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index be81614a02..50ec2e11d2 100644
--- a/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -252,13 +252,6 @@ namespace {
virtual uint64_t getCurrentPCOffset();
virtual uint64_t getConstantPoolEntryAddress(unsigned Entry);
- // forceCompilationOf - Force the compilation of the specified function, and
- // return its address, because we REALLY need the address now.
- //
- // FIXME: This is JIT specific!
- //
- virtual uint64_t forceCompilationOf(Function *F);
-
private:
void *getPointerToGlobal(GlobalValue *GV, void *Reference, bool NoNeedStub);
};
@@ -417,10 +410,6 @@ uint64_t Emitter::getCurrentPCOffset() {
return (intptr_t)CurByte-(intptr_t)CurBlock;
}
-uint64_t Emitter::forceCompilationOf(Function *F) {
- return (intptr_t)TheJIT->getPointerToFunction(F);
-}
-
// getPointerToNamedFunction - This function is used as a global wrapper to
// JIT::getPointerToNamedFunction for the purpose of resolving symbols when
// bugpoint is debugging the JIT. In that scenario, we are loading an .so and