From f87dc9264adc6f4afcdf2a88f02e35bb9af8cf0a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 8 Jan 2009 22:19:34 +0000 Subject: [PATCH] Delete unnecessary parens around return values. llvm-svn: 61950 --- llvm/include/llvm/CodeGen/RegisterCoalescer.h | 4 ++-- llvm/lib/CodeGen/BranchFolding.cpp | 2 +- llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/CodeGen/RegisterCoalescer.h b/llvm/include/llvm/CodeGen/RegisterCoalescer.h index 2e9ea555f0b7..b2e09b5a0c45 100644 --- a/llvm/include/llvm/CodeGen/RegisterCoalescer.h +++ b/llvm/include/llvm/CodeGen/RegisterCoalescer.h @@ -91,7 +91,7 @@ namespace llvm { /// int getNumberOfInterferences(const LiveInterval &a) const { /// IntervalSet intervals; /// getInterferences(intervals, a); - /// return(intervals.size()); + /// return intervals.size(); /// }; /// }; /// @@ -114,7 +114,7 @@ namespace llvm { virtual bool interfere(const LiveInterval &a, const LiveInterval &b) const { // A naive test - return(a.overlaps(b)); + return a.overlaps(b); }; /// Return the set of intervals that interfere with this one. diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 4bf943495656..85df7a9d36c1 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -463,7 +463,7 @@ static bool MergeCompare(const std::pair &p, #ifndef _GLIBCXX_DEBUG assert(0 && "Predecessor appears twice"); #endif - return(false); + return false; } } diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index db55a88eddc2..1d68d7cd2b9d 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -221,7 +221,7 @@ MachineBasicBlock::succ_iterator MachineBasicBlock::removeSuccessor(succ_iterator I) { assert(I != Successors.end() && "Not a current successor!"); (*I)->removePredecessor(this); - return(Successors.erase(I)); + return Successors.erase(I); } void MachineBasicBlock::addPredecessor(MachineBasicBlock *pred) {