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/examples/BrainF/BrainF.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/examples/BrainF/BrainF.cpp')
-rw-r--r-- | llvm/examples/BrainF/BrainF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/BrainF/BrainF.cpp b/llvm/examples/BrainF/BrainF.cpp index a79c44ef0f0..f3d66d9f183 100644 --- a/llvm/examples/BrainF/BrainF.cpp +++ b/llvm/examples/BrainF/BrainF.cpp @@ -71,7 +71,7 @@ void BrainF::header() { brainf_func = cast<Function>(module-> getOrInsertFunction("brainf", Type::VoidTy, NULL)); - builder = new IRBuilder(BasicBlock::Create(label, brainf_func)); + builder = new IRBuilder<>(BasicBlock::Create(label, brainf_func)); //%arr = malloc i8, i32 %d ConstantInt *val_mem = ConstantInt::get(APInt(32, memtotal)); |