summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Core.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2008-08-08 19:39:37 +0000
committerEric Christopher <echristo@apple.com>2008-08-08 19:39:37 +0000
commit5927883970b3c6b977cb9261fa3a20497a5a86ef (patch)
tree4684a09c92575158ce52513e74e4baa8e7fbfa00 /llvm/lib/VMCore/Core.cpp
parent223a5d27632e23a09caa5eac8a5d380be044ee46 (diff)
downloadbcm5719-llvm-5927883970b3c6b977cb9261fa3a20497a5a86ef.tar.gz
bcm5719-llvm-5927883970b3c6b977cb9261fa3a20497a5a86ef.zip
Have IRBuilder take a template argument on whether or not to preserve
names. This can save a lot of allocations if you aren't going to be looking at the output. llvm-svn: 54546
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r--llvm/lib/VMCore/Core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp
index bb4f43d69ae..4e0ca41497f 100644
--- a/llvm/lib/VMCore/Core.cpp
+++ b/llvm/lib/VMCore/Core.cpp
@@ -992,7 +992,7 @@ LLVMBasicBlockRef LLVMGetIncomingBlock(LLVMValueRef PhiNode, unsigned Index) {
/*===-- Instruction builders ----------------------------------------------===*/
LLVMBuilderRef LLVMCreateBuilder(void) {
- return wrap(new IRBuilder());
+ return wrap(new IRBuilder<>());
}
void LLVMPositionBuilder(LLVMBuilderRef Builder, LLVMBasicBlockRef Block,
OpenPOWER on IntegriCloud