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 | 7a61d701c0870642e075e90b6a1ad03a8ac9bc67 (patch) | |
tree | e0930f7b8a66648b8a93e802cd415f24bdf3891f /lib/VMCore/Core.cpp | |
parent | d9cc749318cc9ab4f36efe8a44201a72adbda2b2 (diff) | |
download | external_llvm-7a61d701c0870642e075e90b6a1ad03a8ac9bc67.zip external_llvm-7a61d701c0870642e075e90b6a1ad03a8ac9bc67.tar.gz external_llvm-7a61d701c0870642e075e90b6a1ad03a8ac9bc67.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Core.cpp')
-rw-r--r-- | lib/VMCore/Core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index bb4f43d..4e0ca41 100644 --- a/lib/VMCore/Core.cpp +++ b/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, |