[svn r173] moved IR state previously stored in Type into IrType and a Type->IrType map; fixes #7

This commit is contained in:
Christian Kamm
2008-05-01 13:32:08 +02:00
parent 24726394f6
commit 91ae70e969
12 changed files with 98 additions and 108 deletions

View File

@@ -114,7 +114,6 @@ Type::Type(TY ty, Type *next)
this->arrayof = NULL;
this->vtinfo = NULL;
this->ctype = NULL;
this->llvmType = NULL;
}
Type *Type::syntaxCopy()
@@ -4413,7 +4412,6 @@ TypeClass::TypeClass(ClassDeclaration *sym)
: Type(Tclass, NULL)
{
this->sym = sym;
llvmVtblType = 0;
}
char *TypeClass::toChars()

View File

@@ -21,16 +21,6 @@
#include "arraytypes.h"
#include "expression.h"
// LLVMDC
namespace llvm
{
class Value;
class Instruction;
class Type;
class PATypeHolder;
class GlobalVariable;
}
struct Scope;
struct Identifier;
struct Expression;
@@ -253,8 +243,6 @@ struct Type : Object
virtual type *toCParamtype();
virtual Symbol *toSymbol();
llvm::PATypeHolder* llvmType;
// For eliminating dynamic_cast
virtual TypeBasic *isTypeBasic();
};
@@ -637,8 +625,6 @@ struct TypeClass : Type
type *toCtype();
Symbol *toSymbol();
llvm::PATypeHolder* llvmVtblType;
};
struct TypeTuple : Type