summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-05-15 10:04:30 +0000
committerGabor Greif <ggreif@gmail.com>2008-05-15 10:04:30 +0000
commitb1dbcd886a4b5597a839f299054b78b33fb2d6df (patch)
treead561cfaa4f194770a4167e80e26ec2bbb99f956 /examples
parent4054ae0b250bf1527646f96cf46f95caa3651129 (diff)
downloadllvm-b1dbcd886a4b5597a839f299054b78b33fb2d6df.tar.gz
llvm-b1dbcd886a4b5597a839f299054b78b33fb2d6df.tar.bz2
llvm-b1dbcd886a4b5597a839f299054b78b33fb2d6df.tar.xz
Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51143 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/BrainF/BrainF.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp
index bd6d5f2e56..a79c44ef0f 100644
--- a/examples/BrainF/BrainF.cpp
+++ b/examples/BrainF/BrainF.cpp
@@ -278,9 +278,10 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb) {
BasicBlock *bb_1 = BasicBlock::Create(label, brainf_func);
builder->SetInsertPoint(bb_1);
- //Make part of PHI instruction now, wait until end of loop to finish
- PHINode *phi_0 = PHINode::Create(PointerType::getUnqual(IntegerType::Int8Ty),
- headreg, testbb);
+ // Make part of PHI instruction now, wait until end of loop to finish
+ PHINode *phi_0 =
+ PHINode::Create(PointerType::getUnqual(IntegerType::Int8Ty),
+ headreg, testbb);
phi_0->reserveOperandSpace(2);
phi_0->addIncoming(curhead, bb_0);
curhead = phi_0;