Move storage of final vtbl from BaseClass to IrInterface: BaseClass instances are shared!

Always use the target's irstruct interfaceMap when building the const initializer.
Tango helloworld works again.
This commit is contained in:
Christian Kamm
2008-11-30 11:25:40 +01:00
parent dcf3c96f65
commit f14d97d786
3 changed files with 7 additions and 4 deletions
+1
View File
@@ -164,6 +164,7 @@ struct IrInterface : IrBase
LLConstant* vtblInit;
LLGlobalVariable* vtbl;
Array vtblDecls; // array of FuncDecls that make up the vtbl
const LLStructType* infoTy;
LLConstant* infoInit;