[llvm-commits] CVS: llvm/include/llvm/Type.h

Jim Laskey jlaskey at apple.com
Tue Jul 25 16:22:15 PDT 2006



Changes in directory llvm/include/llvm:

Type.h updated: 1.87 -> 1.88
---
Log message:

Moving this function to a permanent home to prevent a dependency cycle created
by the inline heuristic.  Was preventing llvm-gcc4 from building.


---
Diffs of the changes:  (+0 -12)

 Type.h |   12 ------------
 1 files changed, 12 deletions(-)


Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.87 llvm/include/llvm/Type.h:1.88
--- llvm/include/llvm/Type.h:1.87	Wed May 31 11:03:20 2006
+++ llvm/include/llvm/Type.h	Tue Jul 25 18:22:00 2006
@@ -401,18 +401,6 @@
     Ty->dropRef();
 }
 
-/// get - This implements the forwarding part of the union-find algorithm for
-/// abstract types.  Before every access to the Type*, we check to see if the
-/// type we are pointing to is forwarding to a new type.  If so, we drop our
-/// reference to the type.
-///
-inline Type* PATypeHolder::get() const {
-  const Type *NewTy = Ty->getForwardedType();
-  if (!NewTy) return const_cast<Type*>(Ty);
-  return *const_cast<PATypeHolder*>(this) = NewTy;
-}
-
-
 
 //===----------------------------------------------------------------------===//
 // Provide specializations of GraphTraits to be able to treat a type as a






More information about the llvm-commits mailing list