diff options
| author | Michael Gottesman <mgottesman@apple.com> | 2013-05-13 19:40:39 +0000 |
|---|---|---|
| committer | Michael Gottesman <mgottesman@apple.com> | 2013-05-13 19:40:39 +0000 |
| commit | 993fbf704a20ec70d908003bd0ef313ba0efef57 (patch) | |
| tree | 2b51ef7ecc053a26b14eaeb2432f1db4125a6e67 /llvm/lib/Transforms | |
| parent | 6cda22a3b464de9b166eac715e852fba5767af05 (diff) | |
| download | bcm5719-llvm-993fbf704a20ec70d908003bd0ef313ba0efef57.tar.gz bcm5719-llvm-993fbf704a20ec70d908003bd0ef313ba0efef57.zip | |
[objc-arc-opts] Add comment to BBState making it clear that get{TopDown,BottomUp}PtrState will create a new PtrState object if it does not find a PtrState for Arg.
llvm-svn: 181726
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp b/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp index 6d2d630bb6f..d2d8325d1fc 100644 --- a/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp +++ b/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp @@ -587,10 +587,16 @@ namespace { /// definition. void SetAsExit() { BottomUpPathCount = 1; } + /// Attempt to find the PtrState object describing the top down state for + /// pointer Arg. Return a new initialized PtrState describing the top down + /// state for Arg if we do not find one. PtrState &getPtrTopDownState(const Value *Arg) { return PerPtrTopDown[Arg]; } + /// Attempt to find the PtrState object describing the bottom up state for + /// pointer Arg. Return a new initialized PtrState describing the bottom up + /// state for Arg if we do not find one. PtrState &getPtrBottomUpState(const Value *Arg) { return PerPtrBottomUp[Arg]; } |

