Mercurial > projects > ldc
view ir/irstruct.cpp @ 239:fa691b1c0498 trunk
[svn r256] AsmBlockStatement was still being flattened in some cases.
Function parameters passed as arguments to inline asm was not given storage.
author | lindquist |
---|---|
date | Sun, 08 Jun 2008 22:07:10 +0200 |
parents | aca17e55b7a5 |
children | e3355ce5444b |
line wrap: on
line source
#include "gen/llvm.h" #include "mtype.h" #include "aggregate.h" #include "ir/irstruct.h" #include "gen/irstate.h" #if OPAQUE_VTBLS IrInterface::IrInterface(BaseClass* b, const llvm::ArrayType* vt) #else IrInterface::IrInterface(BaseClass* b, const llvm::StructType* vt) #endif { 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->ir.type) ? *t->ir.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() { }