[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu May 5 23:49:08 PDT 2005



Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.54 -> 1.55
---
Log message:

Make the stub functions be tail calls


---
Diffs of the changes:  (+2 -1)

 JIT.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.54 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.55
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.54	Thu Apr 21 17:45:04 2005
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Fri May  6 01:48:54 2005
@@ -198,7 +198,8 @@
     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






More information about the llvm-commits mailing list