Remove target specific stuff from Type classes
authorChris Lattner <sabre@nondot.org>
Mon, 27 Aug 2001 15:52:13 +0000 (15:52 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Aug 2001 15:52:13 +0000 (15:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@383 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Type.cpp

index 8b3184e7c8c3c48d88900d1f04336537067cb58f..90f92efedd8d25ff94dd1029531673046fcaa973 100644 (file)
@@ -155,11 +155,7 @@ ArrayType::ArrayType(const Type *ElType, int NumEl, const string &Name)
 }
 
 StructType::StructType(const vector<const Type*> &Types, const string &Name) 
-  : Type(Name, StructTyID),
-    ETypes(Types),
-    layoutCache(new StructSizeAndOffsetInfo) 
-{
-  ResetCachedInfo();
+  : Type(Name, StructTyID), ETypes(Types) {
 }
 
 PointerType::PointerType(const Type *E)