diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-06-21 19:12:38 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-06-21 19:12:38 +0000 |
commit | 65af4b5333f539b9e572ebb9c4d4e97a897e5130 (patch) | |
tree | f75275c8de0b7c59304303855fc354d37254d228 /lib/Transforms/ObjCARC | |
parent | a211578aa23cccc6b039d290fa46541a6ef1360e (diff) | |
download | external_llvm-65af4b5333f539b9e572ebb9c4d4e97a897e5130.zip external_llvm-65af4b5333f539b9e572ebb9c4d4e97a897e5130.tar.gz external_llvm-65af4b5333f539b9e572ebb9c4d4e97a897e5130.tar.bz2 |
[objcarcopts] Encapsulated PtrState.RRI.IsTrackingImpreciseRelease() => PtrState.IsTrackingImpreciseRelease().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ObjCARC')
-rw-r--r-- | lib/Transforms/ObjCARC/ObjCARCOpts.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp index c695309..0597cec 100644 --- a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp +++ b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp @@ -469,9 +469,6 @@ namespace { /// occured, false otherwise. bool Merge(const RRInfo &Other); - bool IsTrackingImpreciseReleases() { - return ReleaseMetadata != 0; - } }; } @@ -547,6 +544,10 @@ namespace { RRI.IsTailCallRelease = NewValue; } + bool IsTrackingImpreciseReleases() { + return RRI.ReleaseMetadata != 0; + } + const MDNode *GetReleaseMetadata() const { return RRI.ReleaseMetadata; } @@ -1967,7 +1968,7 @@ ObjCARCOpt::VisitInstructionBottomUp(Instruction *Inst, case S_Use: // If OldSeq is not S_Use or OldSeq is S_Use and we are tracking an // imprecise release, clear our reverse insertion points. - if (OldSeq != S_Use || S.RRI.IsTrackingImpreciseReleases()) + if (OldSeq != S_Use || S.IsTrackingImpreciseReleases()) S.RRI.ReverseInsertPts.clear(); // FALL THROUGH case S_CanRelease: |