summaryrefslogtreecommitdiff
path: root/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-05-13 19:40:39 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-05-13 19:40:39 +0000
commit774a8cf2f5a5f8cd580c71f5eb3055a293917102 (patch)
treecb010d663dc06f2fc18114d8672e176e99a089ab /lib/Transforms/ObjCARC/ObjCARCOpts.cpp
parent59b078fc56e64b9b2d13521670648034cd870c0f (diff)
downloadllvm-774a8cf2f5a5f8cd580c71f5eb3055a293917102.tar.gz
llvm-774a8cf2f5a5f8cd580c71f5eb3055a293917102.tar.bz2
llvm-774a8cf2f5a5f8cd580c71f5eb3055a293917102.tar.xz
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ObjCARC/ObjCARCOpts.cpp')
-rw-r--r--lib/Transforms/ObjCARC/ObjCARCOpts.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
index 6d2d630bb6..d2d8325d1f 100644
--- a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
+++ b/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];
}