summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-22 21:48:33 +0000
committerChris Lattner <sabre@nondot.org>2004-11-22 21:48:33 +0000
commit213e39ee7cd54853337980ff3b0b9d45230c04d0 (patch)
treed2b527372bd921748e91127e66de695bc112a90e /llvm/lib/ExecutionEngine
parentad3840a2cc8603159ab06ea6d7335a8f8ead6dff (diff)
downloadbcm5719-llvm-213e39ee7cd54853337980ff3b0b9d45230c04d0.tar.gz
bcm5719-llvm-213e39ee7cd54853337980ff3b0b9d45230c04d0.zip
These methods are obsolete
llvm-svn: 18129
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/Emitter.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
index c2c8875e19c..be81614a023 100644
--- a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
@@ -169,7 +169,7 @@ void *JITResolver::getFunctionStub(Function *F) {
}
DEBUG(std::cerr << "JIT: Stub emitted at [" << Stub << "] for function '"
- << F->getName() << "\n");
+ << F->getName() << "'\n");
// Finally, keep track of the stub-to-Function mapping so that the
// JITCompilerFn knows which function to compile!
@@ -250,8 +250,6 @@ namespace {
virtual uint64_t getCurrentPCValue();
virtual uint64_t getCurrentPCOffset();
- virtual uint64_t getGlobalValueAddress(GlobalValue *V);
- virtual uint64_t getGlobalValueAddress(const char *Name);
virtual uint64_t getConstantPoolEntryAddress(unsigned Entry);
// forceCompilationOf - Force the compilation of the specified function, and
@@ -398,24 +396,6 @@ void Emitter::emitWordAt(unsigned W, unsigned *Ptr) {
*Ptr = W;
}
-uint64_t Emitter::getGlobalValueAddress(GlobalValue *V) {
- // Try looking up the function to see if it is already compiled, if not return
- // 0.
- if (Function *F = dyn_cast<Function>(V)) {
- void *Addr = TheJIT->getPointerToGlobalIfAvailable(F);
- if (Addr == 0 && F->hasExternalLinkage()) {
- // Do not output stubs for external functions.
- Addr = TheJIT->getPointerToFunction(F);
- }
- return (intptr_t)Addr;
- } else {
- return (intptr_t)TheJIT->getOrEmitGlobalVariable(cast<GlobalVariable>(V));
- }
-}
-uint64_t Emitter::getGlobalValueAddress(const char *Name) {
- return (intptr_t)TheJIT->getPointerToNamedFunction(Name);
-}
-
// getConstantPoolEntryAddress - Return the address of the 'ConstantNum' entry
// in the constant pool that was last emitted with the 'emitConstantPool'
// method.
OpenPOWER on IntegriCloud