summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-01 04:13:31 +0000
committerChris Lattner <sabre@nondot.org>2009-07-01 04:13:31 +0000
commit96122debc194ee6a368512e1f8ca4e5c79628976 (patch)
tree084bfbf3573e973d6b7837a0b22203099a5cbe3e /llvm/lib/ExecutionEngine/JIT/JIT.cpp
parent2857ccbaa7b1c755af1b392b13f0636fb0326a24 (diff)
downloadbcm5719-llvm-96122debc194ee6a368512e1f8ca4e5c79628976.tar.gz
bcm5719-llvm-96122debc194ee6a368512e1f8ca4e5c79628976.zip
improve the APIs for creating struct and function types with no arguments/elements
to not have to create a temporary vector (in the API at least). Patch by Jay Foad! llvm-svn: 74584
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index db5a306badc..1d8312f7629 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -453,7 +453,7 @@ GenericValue JIT::runFunction(Function *F,
// arguments. Make this function and return.
// First, create the function.
- FunctionType *STy=FunctionType::get(RetTy, std::vector<const Type*>(), false);
+ FunctionType *STy=FunctionType::get(RetTy, false);
Function *Stub = Function::Create(STy, Function::InternalLinkage, "",
F->getParent());
OpenPOWER on IntegriCloud