diff options
author | Eric Christopher <echristo@apple.com> | 2008-08-08 19:39:37 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2008-08-08 19:39:37 +0000 |
commit | 5927883970b3c6b977cb9261fa3a20497a5a86ef (patch) | |
tree | 4684a09c92575158ce52513e74e4baa8e7fbfa00 /llvm/lib/VMCore/Core.cpp | |
parent | 223a5d27632e23a09caa5eac8a5d380be044ee46 (diff) | |
download | bcm5719-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.cpp | 2 |
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, |