Mercurial > projects > ldc
view ir/irstruct.cpp @ 145:8f704cb9969b trunk
[svn r150] fixes #16 and #17, implements GotoCaseStatement
author | ChristianK |
---|---|
date | Sat, 08 Mar 2008 15:22:07 +0100 |
parents | ce7b81fb957f |
children | 5c17f81fc1c1 |
line wrap: on
line source
#include "gen/llvm.h" #include "mtype.h" #include "aggregate.h" #include "ir/irstruct.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((t->llvmType != NULL) ? *t->llvmType : 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() { }