From 1a0117f6413e6a4112ff5d20668551224a49f636 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 5 Dec 2004 06:59:59 +0000 Subject: Revert this patch, it broke a ton of programs. llvm-svn: 18535 --- llvm/lib/ExecutionEngine/JIT/JIT.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/ExecutionEngine/JIT/JIT.cpp') diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 6427bf32e88..537ca56e024 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); } -- cgit v1.2.3