Mercurial > projects > ldc
diff ir/irstruct.cpp @ 136:0e28624814e8 trunk
[svn r140] did a lot of the work towards being able to pass multiple modules on the command line. not complete yet though
author | lindquist |
---|---|
date | Thu, 17 Jan 2008 03:15:12 +0100 |
parents | |
children | ce7b81fb957f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ir/irstruct.cpp Thu Jan 17 03:15:12 2008 +0100 @@ -0,0 +1,38 @@ +#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; +} + +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; +} + +IrStruct::~IrStruct() +{ +}