aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-31 02:50:02 +0000
committerChris Lattner <sabre@nondot.org>2003-12-31 02:50:02 +0000
commit4b1be101fb365d8d24577ad0b030a3307573c23e (patch)
tree796d3a390093e45f21254719fac65c57b69f77bb /lib
parentc7d3f6b6bfbf023a743242be72a0bfbb6475d768 (diff)
downloadexternal_llvm-4b1be101fb365d8d24577ad0b030a3307573c23e.zip
external_llvm-4b1be101fb365d8d24577ad0b030a3307573c23e.tar.gz
external_llvm-4b1be101fb365d8d24577ad0b030a3307573c23e.tar.bz2
Add comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10658 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Type.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 9925a54..ba9ea51 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -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;