summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-05 06:59:59 +0000
committerChris Lattner <sabre@nondot.org>2004-12-05 06:59:59 +0000
commit1a0117f6413e6a4112ff5d20668551224a49f636 (patch)
tree1248c1863ad4a1a68094ceaba14ce804cb4c5231
parentf878f75d4675230d173c10c9c06163133d68a047 (diff)
downloadllvm-1a0117f6413e6a4112ff5d20668551224a49f636.tar.gz
Revert this patch, it broke a ton of programs.
llvm-svn: 18535
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index 6427bf32e888..537ca56e0248 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -274,10 +274,6 @@ void *JIT::getPointerToFunctionOrStub(Function *F) {
if (void *Addr = getPointerToGlobalIfAvailable(F))
return Addr;
- // Get a stub if the target supports it
- if (void *Addr = TJI.emitFunctionStub(F, *MCE))
- return Addr;
-
// Otherwise, if the target doesn't support it, just codegen the function.
return getPointerToFunction(F);
}