aboutsummaryrefslogtreecommitdiffstats
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
commit6f71720be3c67f6bffd3976805e577995d779a2f (patch)
tree019a30c8879b8464ce10f4c17fc5dd441f1c0c9d
parent5eff98fd9fd20e179fb390d8f9a4498d3ac90303 (diff)
downloadexternal_llvm-6f71720be3c67f6bffd3976805e577995d779a2f.zip
external_llvm-6f71720be3c67f6bffd3976805e577995d779a2f.tar.gz
external_llvm-6f71720be3c67f6bffd3976805e577995d779a2f.tar.bz2
These methods are obsolete
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18129 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/MachineCodeEmitter.cpp8
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp22
2 files changed, 1 insertions, 29 deletions
diff --git a/lib/CodeGen/MachineCodeEmitter.cpp b/lib/CodeGen/MachineCodeEmitter.cpp
index c64366c..3e955b0 100644
--- a/lib/CodeGen/MachineCodeEmitter.cpp
+++ b/lib/CodeGen/MachineCodeEmitter.cpp
@@ -51,8 +51,6 @@ namespace {
std::cout << "<relocation> ";
}
- uint64_t getGlobalValueAddress(GlobalValue *V) { return 0; }
- uint64_t getGlobalValueAddress(const char *Name) { return 0; }
uint64_t getConstantPoolEntryAddress(unsigned Num) { return 0; }
uint64_t getCurrentPCValue() { return 0; }
uint64_t getCurrentPCOffset() { return 0; }
@@ -150,12 +148,6 @@ namespace {
void emitWordAt(unsigned W, unsigned *Ptr) {
MCE.emitWordAt(W, Ptr);
}
- uint64_t getGlobalValueAddress(GlobalValue *V) {
- return MCE.getGlobalValueAddress(V);
- }
- uint64_t getGlobalValueAddress(const char *Name) {
- return MCE.getGlobalValueAddress(Name);
- }
uint64_t getConstantPoolEntryAddress(unsigned Num) {
return MCE.getConstantPoolEntryAddress(Num);
}
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index c2c8875..be81614 100644
--- a/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/lib/ExecutionEngine/JIT/JITEmitter.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.