Rename AnonTypedRegion to TypedViewRegion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65764 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/BasicObjCFoundationChecks.cpp b/lib/Analysis/BasicObjCFoundationChecks.cpp
index 8a5c3e0..88f480e 100644
--- a/lib/Analysis/BasicObjCFoundationChecks.cpp
+++ b/lib/Analysis/BasicObjCFoundationChecks.cpp
@@ -412,7 +412,7 @@
   const TypedRegion* R = dyn_cast<TypedRegion>(LV->getRegion());
   if (!R) return false;
   
-  while (const AnonTypedRegion* ATR = dyn_cast<AnonTypedRegion>(R)) {
+  while (const TypedViewRegion* ATR = dyn_cast<TypedViewRegion>(R)) {
     R = dyn_cast<TypedRegion>(ATR->getSuperRegion());
     if (!R) return false;
   }
diff --git a/lib/Analysis/BasicStore.cpp b/lib/Analysis/BasicStore.cpp
index ad542b8..85d96c4 100644
--- a/lib/Analysis/BasicStore.cpp
+++ b/lib/Analysis/BasicStore.cpp
@@ -159,7 +159,7 @@
       return CastResult(state, R);
   }
 
-  return CastResult(state, MRMgr.getAnonTypedRegion(CastToTy, R));
+  return CastResult(state, MRMgr.getTypedViewRegion(CastToTy, R));
 }
   
 SVal BasicStoreManager::getLValueField(const GRState* St, SVal Base,
@@ -223,7 +223,7 @@
                                                   StateMgr.getSymbolManager());
       // Layered a typed region on top of this.
       QualType T = StateMgr.getSymbolManager().getType(Sym);
-      BaseR = MRMgr.getAnonTypedRegion(T, SymR);
+      BaseR = MRMgr.getTypedViewRegion(T, SymR);
       break;
     }
       
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index d42a936..5966997 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -1643,9 +1643,9 @@
         
         const TypedRegion* R = dyn_cast<TypedRegion>(MR->getRegion());
         
-        // Blast through AnonTypedRegions to get the original region type.
+        // Blast through TypedViewRegions to get the original region type.
         while (R) {
-          const AnonTypedRegion* ATR = dyn_cast<AnonTypedRegion>(R);
+          const TypedViewRegion* ATR = dyn_cast<TypedViewRegion>(R);
           if (!ATR) break;
           R = dyn_cast<TypedRegion>(ATR->getSuperRegion());
         }
diff --git a/lib/Analysis/MemRegion.cpp b/lib/Analysis/MemRegion.cpp
index 779f651..b2d7ad2 100644
--- a/lib/Analysis/MemRegion.cpp
+++ b/lib/Analysis/MemRegion.cpp
@@ -57,9 +57,9 @@
   ProfileRegion(ID, Ex, Cnt);
 }
 
-void AnonTypedRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, QualType T, 
+void TypedViewRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, QualType T, 
                                     const MemRegion* superRegion) {
-  ID.AddInteger((unsigned) AnonTypedRegionKind);
+  ID.AddInteger((unsigned) TypedViewRegionKind);
   ID.Add(T);
   ID.AddPointer(superRegion);
 }
@@ -160,7 +160,7 @@
   os << "alloca{" << (void*) Ex << ',' << Cnt << '}';
 }
 
-void AnonTypedRegion::print(llvm::raw_ostream& os) const {
+void TypedViewRegion::print(llvm::raw_ostream& os) const {
   os << "anon_type{" << T.getAsString() << ',';
   getSuperRegion()->print(os);
   os << '}';
@@ -399,18 +399,18 @@
   return R;
 }
 
-AnonTypedRegion* 
-MemRegionManager::getAnonTypedRegion(QualType t, const MemRegion* superRegion) {
+TypedViewRegion* 
+MemRegionManager::getTypedViewRegion(QualType t, const MemRegion* superRegion) {
   llvm::FoldingSetNodeID ID;
-  AnonTypedRegion::ProfileRegion(ID, t, superRegion);
+  TypedViewRegion::ProfileRegion(ID, t, superRegion);
 
   void* InsertPos;
   MemRegion* data = Regions.FindNodeOrInsertPos(ID, InsertPos);
-  AnonTypedRegion* R = cast_or_null<AnonTypedRegion>(data);
+  TypedViewRegion* R = cast_or_null<TypedViewRegion>(data);
 
   if (!R) {
-    R = (AnonTypedRegion*) A.Allocate<AnonTypedRegion>();
-    new (R) AnonTypedRegion(t, superRegion);
+    R = (TypedViewRegion*) A.Allocate<TypedViewRegion>();
+    new (R) TypedViewRegion(t, superRegion);
     Regions.InsertNode(R, InsertPos);
   }
 
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp
index c61094c..e6e530b 100644
--- a/lib/Analysis/RegionStore.cpp
+++ b/lib/Analysis/RegionStore.cpp
@@ -365,7 +365,7 @@
     //   char *p = __builtin_alloc(10);
     //   p[1] = 8;
     //
-    //  Observe that 'p' binds to an AnonTypedRegion<AllocaRegion>.
+    //  Observe that 'p' binds to an TypedViewRegion<AllocaRegion>.
     //
 
     // Offset might be unsigned. We have to convert it to signed ConcreteInt.
@@ -442,7 +442,7 @@
     return NonLoc::MakeIntVal(getBasicVals(), Str->getByteLength()+1, false);
   }
 
-  if (const AnonTypedRegion* ATR = dyn_cast<AnonTypedRegion>(R)) {
+  if (const TypedViewRegion* ATR = dyn_cast<TypedViewRegion>(R)) {
 #if 0
     // FIXME: This logic doesn't really work, as we can have all sorts of
     // weird cases.  For example, this crashes on test case 'rdar-6442306-1.m'.
@@ -547,7 +547,7 @@
   //      char* y = (char*) x;
   //      void* z = (void*) y; // <-- we should get the same region that is 
   //                                  bound to 'x'
-  const MemRegion* ViewR = MRMgr.getAnonTypedRegion(CastToTy, R);  
+  const MemRegion* ViewR = MRMgr.getTypedViewRegion(CastToTy, R);  
   return CastResult(AddRegionView(state, ViewR, R), ViewR);
 }