mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
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:
parent
267fddbedd
commit
2c71b8f64f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user