Mercurial > projects > ldc
view ir/irstruct.cpp @ 158:287540c5f05e trunk
[svn r174] added file missing from previous commit [173]
author | ChristianK |
---|---|
date | Thu, 01 May 2008 13:33:02 +0200 |
parents | 5c17f81fc1c1 |
children | db9890b3fb64 |
line wrap: on
line source
#include "gen/llvm.h" #include "mtype.h" #include "aggregate.h" #include "ir/irstruct.h" #include "gen/irstate.h" IrInterface::IrInterface(BaseClass* b, const llvm::StructType* vt) { base = b; decl = b->base; vtblTy = vt; vtblInit = NULL; vtbl = NULL; infoTy = NULL; infoInit = NULL; info = NULL; index = -1; } IrInterface::~IrInterface() { } ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// IrStruct::IrStruct(Type* t) : recty((gIR && gIR->irType[t].type) ? *gIR->irType[t].type : llvm::OpaqueType::get()) { type = t; defined = false; constinited = false; interfaceInfosTy = NULL; interfaceInfos = NULL; vtbl = NULL; constVtbl = NULL; init = NULL; constInit = NULL; classInfo = NULL; constClassInfo = NULL; hasUnions = false; dunion = NULL; classDeclared = false; classDefined = false; } IrStruct::~IrStruct() { }