eliminate unneeded parens.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68939 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-04-13 05:38:23 +00:00
parent 267fddbedd
commit 2c71b8f64f

View File

@ -63,7 +63,7 @@ bool GlobalDCE::runOnModule(Module &M) {
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) { for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
Changed |= RemoveUnusedGlobalValue(*I); Changed |= RemoveUnusedGlobalValue(*I);
// Functions with external linkage are needed if they have a body // Functions with external linkage are needed if they have a body
if ((!I->hasLocalLinkage() && !I->hasLinkOnceLinkage()) && if (!I->hasLocalLinkage() && !I->hasLinkOnceLinkage() &&
!I->isDeclaration()) !I->isDeclaration())
GlobalIsNeeded(I); GlobalIsNeeded(I);
} }
@ -73,7 +73,7 @@ bool GlobalDCE::runOnModule(Module &M) {
Changed |= RemoveUnusedGlobalValue(*I); Changed |= RemoveUnusedGlobalValue(*I);
// Externally visible & appending globals are needed, if they have an // Externally visible & appending globals are needed, if they have an
// initializer. // initializer.
if ((!I->hasLocalLinkage() && !I->hasLinkOnceLinkage()) && if (!I->hasLocalLinkage() && !I->hasLinkOnceLinkage() &&
!I->isDeclaration()) !I->isDeclaration())
GlobalIsNeeded(I); GlobalIsNeeded(I);
} }