Move clients over from using GRStateManager::BindXXX and friends to
GRState->bindXXX and friends (and constify some arguments along the way).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73740 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 9cdc769..c58ceb4 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -3056,7 +3056,7 @@
     // FIXME: Is this really working as expected?  There are cases where
     //  we just use the 'ID' from the message expression.
     const GRState* St = Builder.GetState(Pred);
-    SVal V = Eng.getStateManager().GetSValAsScalarOrLoc(St, Receiver);
+    SVal V = St->getSValAsScalarOrLoc(Receiver);
 
     SymbolRef Sym = V.getAsLocSymbol();
     if (Sym) {
@@ -3089,7 +3089,7 @@
     //  This is a hack.  When we have full-IP this should be removed.
     if (isa<ObjCMethodDecl>(&Eng.getGraph().getCodeDecl())) {      
       if (Expr* Receiver = ME->getReceiver()) {
-        SVal X = Eng.getStateManager().GetSValAsScalarOrLoc(St, Receiver);
+        SVal X = St->getSValAsScalarOrLoc(Receiver);
         if (loc::MemRegionVal* L = dyn_cast<loc::MemRegionVal>(&X))
           if (L->getRegion() == Eng.getStateManager().getSelfRegion(St)) {
             // Update the summary to make the default argument effect