[objc-arc] Refactor (Re-)initialization of PtrState from dataflow -> {TopDown,BottomU...
authorMichael Gottesman <mgottesman@apple.com>
Fri, 6 Mar 2015 00:34:39 +0000 (00:34 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 6 Mar 2015 00:34:39 +0000 (00:34 +0000)
commit4eae396ae9eb37ad4e7f5648069110d6a08f5f52
treed4c5d4d3e0887693dca0247317fac93dc70e7a7e
parentfeb138e211406a4da10b77c1a47faca0aa8c5517
[objc-arc] Refactor (Re-)initialization of PtrState from dataflow -> {TopDown,BottomUp}PtrState Class.

This initialization occurs when we see a new retain or release. Before
we performed the actual initialization inline in the dataflow. That is
just messy.

llvm-svn: 231438
llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
llvm/lib/Transforms/ObjCARC/PtrState.cpp
llvm/lib/Transforms/ObjCARC/PtrState.h