Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.91 -> 1.92
---
Log message:

eliminate vector-related allocations


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

 JIT.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.91 
llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.92
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.91   Tue Jan 30 14:08:37 2007
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp        Tue Feb 13 00:01:22 2007
@@ -187,7 +187,7 @@
 
   // Convert all of the GenericValue arguments over to constants.  Note that we
   // currently don't support varargs.
-  std::vector<Value*> Args;
+  SmallVector<Value*, 8> Args;
   for (unsigned i = 0, e = ArgValues.size(); i != e; ++i) {
     Constant *C = 0;
     const Type *ArgTy = FTy->getParamType(i);
@@ -225,7 +225,7 @@
     Args.push_back(C);
   }
 
-  CallInst *TheCall = new CallInst(F, Args, "", StubBB);
+  CallInst *TheCall = new CallInst(F, &Args[0], Args.size(), "", StubBB);
   TheCall->setTailCall();
   if (TheCall->getType() != Type::VoidTy)
     new ReturnInst(TheCall, StubBB);             // Return result of the call.



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to