Fixed previous aggregate initZ alignment.

Added missing IrType::isDelegate method.
This commit is contained in:
Tomas Lindquist Olsen
2009-05-16 18:37:16 +02:00
parent 2e33a6af9f
commit 9beb33770f
2 changed files with 4 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ LLGlobalVariable * IrStruct::getInitSymbol()
init_pa.get(), true, _linkage, NULL, initname, gIR->module);
// set alignment
init->setAlignment(aggrdecl->alignsize);
init->setAlignment(type->alignsize());
return init;
}

View File

@@ -13,6 +13,7 @@ class IrTypeAggr;
class IrTypeArray;
class IrTypeBasic;
class IrTypeClass;
class IrTypeDelegate;
class IrTypeFunction;
class IrTypePointer;
class IrTypeSArray;
@@ -36,6 +37,8 @@ public:
///
virtual IrTypeClass* isClass() { return NULL; }
///
virtual IrTypeDelegate* isDelegate(){ return NULL; }
///
virtual IrTypeFunction* isFunction(){ return NULL; }
///
virtual IrTypePointer* isPointer() { return NULL; }