mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Make the stub functions be tail calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21738 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9e9211bbb
commit
a471e045b7
@ -198,7 +198,8 @@ GenericValue JIT::runFunction(Function *F,
|
|||||||
Args.push_back(C);
|
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)
|
if (TheCall->getType() != Type::VoidTy)
|
||||||
new ReturnInst(TheCall, StubBB); // Return result of the call.
|
new ReturnInst(TheCall, StubBB); // Return result of the call.
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user