1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

eliminate unneeded parens.

llvm-svn: 68939
This commit is contained in:
Chris Lattner 2009-04-13 05:38:23 +00:00
parent 2a36860ad9
commit 57077413f1

View File

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