Mercurial > projects > ldc
comparison dmd/mtype.c @ 157:5c17f81fc1c1 trunk
[svn r173] moved IR state previously stored in Type into IrType and a Type->IrType map; fixes #7
author | ChristianK |
---|---|
date | Thu, 01 May 2008 13:32:08 +0200 |
parents | 0ab29b838084 |
children | 5acec6b2eef8 |
comparison
equal
deleted
inserted
replaced
156:ccd07d9f2ce9 | 157:5c17f81fc1c1 |
---|---|
112 this->pto = NULL; | 112 this->pto = NULL; |
113 this->rto = NULL; | 113 this->rto = NULL; |
114 this->arrayof = NULL; | 114 this->arrayof = NULL; |
115 this->vtinfo = NULL; | 115 this->vtinfo = NULL; |
116 this->ctype = NULL; | 116 this->ctype = NULL; |
117 this->llvmType = NULL; | |
118 } | 117 } |
119 | 118 |
120 Type *Type::syntaxCopy() | 119 Type *Type::syntaxCopy() |
121 { | 120 { |
122 print(); | 121 print(); |
4411 | 4410 |
4412 TypeClass::TypeClass(ClassDeclaration *sym) | 4411 TypeClass::TypeClass(ClassDeclaration *sym) |
4413 : Type(Tclass, NULL) | 4412 : Type(Tclass, NULL) |
4414 { | 4413 { |
4415 this->sym = sym; | 4414 this->sym = sym; |
4416 llvmVtblType = 0; | |
4417 } | 4415 } |
4418 | 4416 |
4419 char *TypeClass::toChars() | 4417 char *TypeClass::toChars() |
4420 { | 4418 { |
4421 return sym->toPrettyChars(); | 4419 return sym->toPrettyChars(); |