diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:48:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:48:54 +0000 |
commit | a471e045b7cef5da428bdada4a362a4be671ef0b (patch) | |
tree | 558adb2a5321a979af61ae92675d9777480aab15 /lib/ExecutionEngine/JIT/JIT.cpp | |
parent | a9e9211bbb2a47f4d6db61ef100ccebe4c46c0ff (diff) |
Make the stub functions be tail calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index 0559c53e6c..cf4e14481b 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/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 |