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 /examples/BrainF | |
parent | d9cc749318cc9ab4f36efe8a44201a72adbda2b2 (diff) |
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 'examples/BrainF')
-rw-r--r-- | examples/BrainF/BrainF.cpp | 2 | ||||
-rw-r--r-- | examples/BrainF/BrainF.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp index a79c44ef0f..f3d66d9f18 100644 --- a/examples/BrainF/BrainF.cpp +++ b/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)); diff --git a/examples/BrainF/BrainF.h b/examples/BrainF/BrainF.h index e6aef82095..06c00ae4df 100644 --- a/examples/BrainF/BrainF.h +++ b/examples/BrainF/BrainF.h @@ -84,7 +84,7 @@ class BrainF { BasicBlock *aberrorbb; /// Variables - IRBuilder *builder; + IRBuilder<> *builder; Value *curhead; }; |