mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Changed the method name PtrState.IsKnownIncremented() to PtrState.HasKnownPositiveRefCount().
Now said method matches namewise every other method which refers to the member KnownPositiveRefCount of the class PtrState. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177816 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e8fc6f87a
commit
4df66f74d9
@ -458,7 +458,7 @@ namespace {
|
||||
KnownPositiveRefCount = false;
|
||||
}
|
||||
|
||||
bool IsKnownIncremented() const {
|
||||
bool HasKnownPositiveRefCount() const {
|
||||
return KnownPositiveRefCount;
|
||||
}
|
||||
|
||||
@ -1507,7 +1507,7 @@ ObjCARCOpt::VisitInstructionBottomUp(Instruction *Inst,
|
||||
MDNode *ReleaseMetadata = Inst->getMetadata(ImpreciseReleaseMDKind);
|
||||
S.ResetSequenceProgress(ReleaseMetadata ? S_MovableRelease : S_Release);
|
||||
S.RRI.ReleaseMetadata = ReleaseMetadata;
|
||||
S.RRI.KnownSafe = S.IsKnownIncremented();
|
||||
S.RRI.KnownSafe = S.HasKnownPositiveRefCount();
|
||||
S.RRI.IsTailCallRelease = cast<CallInst>(Inst)->isTailCall();
|
||||
S.RRI.Calls.insert(Inst);
|
||||
|
||||
@ -1718,7 +1718,7 @@ ObjCARCOpt::VisitInstructionTopDown(Instruction *Inst,
|
||||
|
||||
S.ResetSequenceProgress(S_Retain);
|
||||
S.RRI.IsRetainBlock = Class == IC_RetainBlock;
|
||||
S.RRI.KnownSafe = S.IsKnownIncremented();
|
||||
S.RRI.KnownSafe = S.HasKnownPositiveRefCount();
|
||||
S.RRI.Calls.insert(Inst);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user