Skip to content

Commit

Permalink
[objc-arc-opts] Add comment to BBState making it clear that get{TopDo…
Browse files Browse the repository at this point in the history
…wn,BottomUp}PtrState will create a new PtrState object if it does not find a PtrState for Arg.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181726 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gottesmm committed May 13, 2013
1 parent 59b078f commit 774a8cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Transforms/ObjCARC/ObjCARCOpts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 774a8cf

Please sign in to comment.