summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-10-06 00:35:55 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-10-06 00:35:55 +0000
commite97fe329e9cf82a11754eeb91bd52527c9080f45 (patch)
tree543d1d36ec8903687658167dd83573b681875543 /llvm/lib/ExecutionEngine/JIT
parentfaf7e9ad2471d4607fce9f3dcd35139adda5d519 (diff)
downloadbcm5719-llvm-e97fe329e9cf82a11754eeb91bd52527c9080f45.tar.gz
bcm5719-llvm-e97fe329e9cf82a11754eeb91bd52527c9080f45.zip
Fix http://llvm.org/PR5116 by rolling back r60822. This passes `make unittests
check-lit` on both x86-64 Linux and x86-32 Darwin. llvm-svn: 83353
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
index 590846bfded..85483564eb5 100644
--- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -644,7 +644,7 @@ void *JITEmitter::getPointerToGlobal(GlobalValue *V, void *Reference,
// If we have already compiled the function, return a pointer to its body.
Function *F = cast<Function>(V);
void *ResultPtr;
- if (!DoesntNeedStub && !TheJIT->isLazyCompilationDisabled()) {
+ if (!DoesntNeedStub) {
// Return the function stub if it's already created.
ResultPtr = Resolver.getFunctionStubIfAvailable(F);
if (ResultPtr)
OpenPOWER on IntegriCloud