comparison ir/irstruct.cpp @ 193:aca17e55b7a5 trunk

[svn r209] Fixed: exotic array to pointer casts were broken. Changed: classes now have opaque vtables.
author lindquist
date Mon, 12 May 2008 18:44:11 +0200
parents db9890b3fb64
children e3355ce5444b
comparison
equal deleted inserted replaced
192:67ed21bf16af 193:aca17e55b7a5
2 #include "mtype.h" 2 #include "mtype.h"
3 #include "aggregate.h" 3 #include "aggregate.h"
4 #include "ir/irstruct.h" 4 #include "ir/irstruct.h"
5 #include "gen/irstate.h" 5 #include "gen/irstate.h"
6 6
7 #if OPAQUE_VTBLS
8 IrInterface::IrInterface(BaseClass* b, const llvm::ArrayType* vt)
9 #else
7 IrInterface::IrInterface(BaseClass* b, const llvm::StructType* vt) 10 IrInterface::IrInterface(BaseClass* b, const llvm::StructType* vt)
11 #endif
8 { 12 {
9 base = b; 13 base = b;
10 decl = b->base; 14 decl = b->base;
11 vtblTy = vt; 15 vtblTy = vt;
12 vtblInit = NULL; 16 vtblInit = NULL;