[svn r328] Fixed an issue with interfaces where the vtable type of a interface implemented could be invalid. Fixes several tango modules like, FileStream, ServerSocket

and most tina cluster modules :)
This commit is contained in:
Tomas Lindquist Olsen
2008-06-28 03:45:18 +02:00
parent a3c7b8b369
commit 86d299a641
3 changed files with 14 additions and 28 deletions
+3 -12
View File
@@ -11,13 +11,8 @@ struct IrInterface : IrBase
BaseClass* base;
ClassDeclaration* decl;
#if OPAQUE_VTBLS
const LLArrayType* vtblTy;
LLConstantArray* vtblInit;
#else
const LLStructType* vtblTy;
LLConstantStruct* vtblInit;
#endif
llvm::PATypeHolder* vtblTy;
LLConstant* vtblInit;
LLGlobalVariable* vtbl;
const LLStructType* infoTy;
@@ -26,11 +21,7 @@ struct IrInterface : IrBase
int index;
#if OPAQUE_VTBLS
IrInterface(BaseClass* b, const LLArrayType* vt);
#else
IrInterface(BaseClass* b, const LLStructType* vt);
#endif
IrInterface(BaseClass* b);
~IrInterface();
};