diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-13 06:01:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-13 06:01:22 +0000 |
commit | 990b849abc9481b8c7a482019cd0d95fe2f2a3ea (patch) | |
tree | a287172654b3240304a4676da62fdb730462e0f0 /lib/ExecutionEngine/JIT/JIT.cpp | |
parent | c18470cb0044129f1b43d09d7a4eb683ee3996ad (diff) |
eliminate vector-related allocations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index eabe4ea075..ca3dbb96a7 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -187,7 +187,7 @@ GenericValue JIT::runFunction(Function *F, // 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 @@ GenericValue JIT::runFunction(Function *F, 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. |