summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 06:48:54 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 06:48:54 +0000
commitec7773e9e8798e2317add80a674514e00f9ef1c8 (patch)
tree3d89fe94e43fcf5c45808369923358c0c5dbd14e /llvm/lib/ExecutionEngine/JIT/JIT.cpp
parent6aacb0f9da780f0d1b57b9681c6f858137824eed (diff)
downloadbcm5719-llvm-ec7773e9e8798e2317add80a674514e00f9ef1c8.tar.gz
bcm5719-llvm-ec7773e9e8798e2317add80a674514e00f9ef1c8.zip
Make the stub functions be tail calls
llvm-svn: 21738
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index 0559c53e6cf..cf4e14481b8 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -198,7 +198,8 @@ GenericValue JIT::runFunction(Function *F,
Args.push_back(C);
}
- Value *TheCall = new CallInst(F, Args, "", StubBB);
+ CallInst *TheCall = new CallInst(F, Args, "", StubBB);
+ TheCall->setTailCall();
if (TheCall->getType() != Type::VoidTy)
new ReturnInst(TheCall, StubBB); // Return result of the call.
else
OpenPOWER on IntegriCloud