mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
eliminate unneeded parens.
llvm-svn: 68939
This commit is contained in:
parent
2a36860ad9
commit
57077413f1
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user