summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/VM.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-01 23:24:36 +0000
committerChris Lattner <sabre@nondot.org>2003-06-01 23:24:36 +0000
commit6b689e3ad44a7f14d96abf1cd003e2c224d54175 (patch)
tree653f63890902aa4c3cc2879bbd6cc61158ad4868 /llvm/lib/ExecutionEngine/JIT/VM.cpp
parent3bb2a00849a9416747e4e26b800b0d8f0b0f33b2 (diff)
downloadbcm5719-llvm-6b689e3ad44a7f14d96abf1cd003e2c224d54175.tar.gz
bcm5719-llvm-6b689e3ad44a7f14d96abf1cd003e2c224d54175.zip
Move target specific code to target files. The new MachineCodeEmitter
class is actually target independent! llvm-svn: 6517
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/VM.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/VM.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/VM.cpp b/llvm/lib/ExecutionEngine/JIT/VM.cpp
index c6748fa1dc7..d5815e8dd88 100644
--- a/llvm/lib/ExecutionEngine/JIT/VM.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/VM.cpp
@@ -36,22 +36,6 @@ void VM::setupPassManager() {
}
}
-void *VM::resolveFunctionReference(void *RefAddr) {
- Function *F = FunctionRefs[RefAddr];
- assert(F && "Reference address not known!");
-
- void *Addr = getPointerToFunction(F);
- assert(Addr && "Pointer to function unknown!");
-
- FunctionRefs.erase(RefAddr);
- return Addr;
-}
-
-const std::string &VM::getFunctionReferencedName(void *RefAddr) {
- assert(FunctionRefs[RefAddr] && "Function address unknown!");
- return FunctionRefs[RefAddr]->getName();
-}
-
/// getPointerToFunction - This method is used to get the address of the
/// specified function, compiling it if neccesary.
///
@@ -63,12 +47,7 @@ void *VM::getPointerToFunction(const Function *F) {
return Addr = getPointerToNamedFunction(F->getName());
static bool isAlreadyCodeGenerating = false;
- if (isAlreadyCodeGenerating) {
- // Generate a function stub instead of reentering...
- void *SAddr = emitStubForFunction(*F);
- assert(SAddr && "Target machine doesn't support function stub generation!");
- return SAddr;
- }
+ assert(!isAlreadyCodeGenerating && "ERROR: RECURSIVE COMPILATION DETECTED!");
// FIXME: JIT all of the functions in the module. Eventually this will JIT
// functions on demand. This has the effect of populating all of the
OpenPOWER on IntegriCloud