Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
135:176bd52b3cf5 | 136:0e28624814e8 |
---|---|
1 #include "gen/llvm.h" | |
2 #include "mtype.h" | |
3 #include "aggregate.h" | |
4 #include "ir/irstruct.h" | |
5 | |
6 IrInterface::IrInterface(BaseClass* b, const llvm::StructType* vt) | |
7 { | |
8 base = b; | |
9 decl = b->base; | |
10 vtblTy = vt; | |
11 vtblInit = NULL; | |
12 vtbl = NULL; | |
13 infoTy = NULL; | |
14 infoInit = NULL; | |
15 info = NULL; | |
16 } | |
17 | |
18 IrInterface::~IrInterface() | |
19 { | |
20 } | |
21 | |
22 ////////////////////////////////////////////////////////////////////////////// | |
23 ////////////////////////////////////////////////////////////////////////////// | |
24 ////////////////////////////////////////////////////////////////////////////// | |
25 | |
26 IrStruct::IrStruct(Type* t) | |
27 : recty((t->llvmType != NULL) ? *t->llvmType : llvm::OpaqueType::get()) | |
28 { | |
29 type = t; | |
30 defined = false; | |
31 constinited = false; | |
32 interfaceInfosTy = NULL; | |
33 interfaceInfos = NULL; | |
34 } | |
35 | |
36 IrStruct::~IrStruct() | |
37 { | |
38 } |