From 2f1bfc4c7937fdf59e2d88e0e23d0657daba79b2 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Mon, 7 Jan 2013 21:26:07 +0000 Subject: [PATCH] Fixed EOL whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171791 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/ObjCARC.cpp | 58 +++++++++++++++---------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/lib/Transforms/Scalar/ObjCARC.cpp b/lib/Transforms/Scalar/ObjCARC.cpp index f71784bdcd4..e6ec841aa5b 100644 --- a/lib/Transforms/Scalar/ObjCARC.cpp +++ b/lib/Transforms/Scalar/ObjCARC.cpp @@ -886,9 +886,9 @@ bool ObjCARCExpand::runOnFunction(Function &F) { for (inst_iterator I = inst_begin(&F), E = inst_end(&F); I != E; ++I) { Instruction *Inst = &*I; - + DEBUG(dbgs() << "ObjCARCExpand: Visiting: " << *Inst << "\n"); - + switch (GetBasicInstructionClass(Inst)) { case IC_Retain: case IC_RetainRV: @@ -911,9 +911,9 @@ bool ObjCARCExpand::runOnFunction(Function &F) { break; } } - + DEBUG(dbgs() << "ObjCARCExpand: Finished List.\n\n"); - + return Changed; } @@ -2199,13 +2199,13 @@ ObjCARCOpt::OptimizeRetainCall(Function &F, Instruction *Retain) { // Turn it to an objc_retainAutoreleasedReturnValue.. Changed = true; ++NumPeeps; - + DEBUG(dbgs() << "ObjCARCOpt::OptimizeRetainCall: Transforming " "objc_retainAutoreleasedReturnValue => " "objc_retain since the operand is not a return value.\n" " Old: " << *Retain << "\n"); - + cast(Retain)->setCalledFunction(getRetainRVCallee(F.getParent())); DEBUG(dbgs() << " New: " @@ -2247,11 +2247,11 @@ ObjCARCOpt::OptimizeRetainRVCall(Function &F, Instruction *RetainRV) { GetObjCArg(I) == Arg) { Changed = true; ++NumPeeps; - + DEBUG(dbgs() << "ObjCARCOpt::OptimizeRetainRVCall: Erasing " << *I << "\n" << " Erasing " << *RetainRV << "\n"); - + EraseInstruction(I); EraseInstruction(RetainRV); return true; @@ -2261,13 +2261,13 @@ ObjCARCOpt::OptimizeRetainRVCall(Function &F, Instruction *RetainRV) { // Turn it to a plain objc_retain. Changed = true; ++NumPeeps; - + DEBUG(dbgs() << "ObjCARCOpt::OptimizeRetainRVCall: Transforming " "objc_retainAutoreleasedReturnValue => " "objc_retain since the operand is not a return value.\n" " Old: " << *RetainRV << "\n"); - + cast(RetainRV)->setCalledFunction(getRetainCallee(F.getParent())); DEBUG(dbgs() << " New: " @@ -2308,10 +2308,10 @@ ObjCARCOpt::OptimizeAutoreleaseRVCall(Function &F, Instruction *AutoreleaseRV) { cast(AutoreleaseRV)-> setCalledFunction(getAutoreleaseCallee(F.getParent())); - + DEBUG(dbgs() << " New: " << *AutoreleaseRV << "\n"); - + } /// OptimizeIndividualCalls - Visit each call, one at a time, and make @@ -2361,12 +2361,12 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) { new StoreInst(UndefValue::get(cast(Ty)->getElementType()), Constant::getNullValue(Ty), CI); - llvm::Value *NewValue = UndefValue::get(CI->getType()); + llvm::Value *NewValue = UndefValue::get(CI->getType()); DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: A null " "pointer-to-weak-pointer is undefined behavior.\n" " Old = " << *CI << "\n New = " << - *NewValue << "\n"); + *NewValue << "\n"); CI->replaceAllUsesWith(NewValue); CI->eraseFromParent(); continue; @@ -2390,7 +2390,7 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) { " Old = " << *CI << "\n New = " << *NewValue << "\n"); - + CI->replaceAllUsesWith(NewValue); CI->eraseFromParent(); continue; @@ -2425,14 +2425,14 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) { Call->getArgOperand(0), "", Call); NewCall->setMetadata(ImpreciseReleaseMDKind, MDNode::get(C, ArrayRef())); - + DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Replacing " "objc_autorelease(x) with objc_release(x) since x is " "otherwise unused.\n" " Old: " << *Call << "\n New: " << *NewCall << "\n"); - + EraseInstruction(Call); Inst = NewCall; Class = IC_Release; @@ -3626,9 +3626,9 @@ void ObjCARCOpt::OptimizeWeakCalls(Function &F) { done:; } } - + DEBUG(dbgs() << "ObjCARCOpt::OptimizeWeakCalls: Finished List.\n\n"); - + } /// OptimizeSequences - Identify program paths which execute sequences of @@ -3766,9 +3766,9 @@ void ObjCARCOpt::OptimizeReturns(Function &F) { DependingInstructions.clear(); Visited.clear(); } - + DEBUG(dbgs() << "ObjCARCOpt::OptimizeReturns: Finished List.\n\n"); - + } bool ObjCARCOpt::doInitialization(Module &M) { @@ -4027,20 +4027,20 @@ ObjCARCContract::ContractAutorelease(Function &F, Instruction *Autorelease, Changed = true; ++NumPeeps; - + DEBUG(dbgs() << "ObjCARCContract::ContractAutorelease: Fusing " "retain/autorelease. Erasing: " << *Autorelease << "\n" " Old Retain: " << *Retain << "\n"); - + if (Class == IC_AutoreleaseRV) Retain->setCalledFunction(getRetainAutoreleaseRVCallee(F.getParent())); else Retain->setCalledFunction(getRetainAutoreleaseCallee(F.getParent())); - + DEBUG(dbgs() << " New Retain: " << *Retain << "\n"); - + EraseInstruction(Autorelease); return true; } @@ -4190,9 +4190,9 @@ bool ObjCARCContract::runOnFunction(Function &F) { SmallPtrSet Visited; for (inst_iterator I = inst_begin(&F), E = inst_end(&F); I != E; ) { Instruction *Inst = &*I++; - + DEBUG(dbgs() << "ObjCARCContract: Visiting: " << *Inst << "\n"); - + // Only these library routines return their argument. In particular, // objc_retainBlock does not necessarily return its argument. InstructionClass Class = GetBasicInstructionClass(Inst); @@ -4251,10 +4251,10 @@ bool ObjCARCContract::runOnFunction(Function &F) { ConstantPointerNull::get(cast(CI->getType())); Changed = true; new StoreInst(Null, CI->getArgOperand(0), CI); - + DEBUG(dbgs() << "OBJCARCContract: Old = " << *CI << "\n" << " New = " << *Null << "\n"); - + CI->replaceAllUsesWith(Null); CI->eraseFromParent(); } -- 2.34.1