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 | 6ea07f178c64a74967b9f61b657c1c070286694f (patch) | |
tree | d7d82be244b44e1a4ac5e822bc6acd5cdc729c6a /llvm/lib/ExecutionEngine | |
parent | ade1c2bb513bb7fc6ae85a2ddfd174a919a6e2b2 (diff) | |
download | bcm5719-llvm-6ea07f178c64a74967b9f61b657c1c070286694f.tar.gz bcm5719-llvm-6ea07f178c64a74967b9f61b657c1c070286694f.zip |
eliminate vector-related allocations
llvm-svn: 34223
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index eabe4ea0759..ca3dbb96a7b 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/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. |