[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Dec 30 20:51:01 PST 2003
Changes in directory llvm/lib/VMCore:
Type.cpp updated: 1.85 -> 1.86
---
Log message:
Add comments
---
Diffs of the changes: (+5 -2)
Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.85 llvm/lib/VMCore/Type.cpp:1.86
--- llvm/lib/VMCore/Type.cpp:1.85 Tue Nov 25 15:28:00 2003
+++ llvm/lib/VMCore/Type.cpp Tue Dec 30 20:50:02 2003
@@ -585,7 +585,10 @@
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 @@
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;
More information about the llvm-commits
mailing list