[objc-arc] Create two subclasses of PtrState in preparation for moving per ptr state...
authorMichael Gottesman <mgottesman@apple.com>
Fri, 6 Mar 2015 00:34:36 +0000 (00:34 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 6 Mar 2015 00:34:36 +0000 (00:34 +0000)
commit5c86053f698174ca2d1c3af332995e6c72a30a30
tree65b5465bd22bf3b757bdf2442370e83954c74591
parentc0cb123b8dc67fe89b9fce68855a181c612ce153
[objc-arc] Create two subclasses of PtrState in preparation for moving per ptr state change behavior onto a PtrState class.

This will enable the main ObjCARCOpts dataflow to work with higher
level concepts such as "can this ptr state be modified by this ref
count" and not need to understand the nitty gritty details of how that
is determined. This makes the dataflow cleaner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231437 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
lib/Transforms/ObjCARC/PtrState.h