Add comments
authorChris Lattner <sabre@nondot.org>
Wed, 31 Dec 2003 02:50:02 +0000 (02:50 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 31 Dec 2003 02:50:02 +0000 (02:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10658 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Type.cpp

index 9925a54d68840762dc3a6ee334a510b5566c4d1b..ba9ea510b8fddb79ca352e36be4ae370a86726a7 100644 (file)
@@ -585,7 +585,10 @@ public:
     return I;
   }
 
-
+  /// finishRefinement - This method is called after we have updated an existing
+  /// type with its new components.  We must now either merge the type away with
+  /// some other type or reinstall it in the map with it's new configuration.
+  /// The specified iterator tells us what the type USED to look like.
   void finishRefinement(iterator TyIt) {
     TypeClass *Ty = TyIt->second;
 
@@ -594,7 +597,7 @@ public:
     Map.erase(TyIt);
 
     // Determine whether there is a cycle through the type graph which passes
-    // back through this type.  Other cycles are ok
+    // back through this type.  Other cycles are ok though.
     bool HasTypeCycle = false;
     {
       std::set<const Type*> VisitedTypes;