branches.emplace_back(format("Vector: %d", type.size));
else if(type.kind==BasicTypeDeclaration::MATRIX)
branches.emplace_back(format("Matrix: %dx%d", type.size&0xFFFF, type.size>>16));
+ if(type.extended_alignment)
+ branches.emplace_back("Extended alignment");
append_subtree(branches);
}
void DumpTree::visit(StructDeclaration &strct)
{
append(strct, format("%s struct %s", get_label(strct), strct.name));
- append_subtree(strct.members);
+ vector<Branch> branches;
+ if(strct.extended_alignment)
+ branches.emplace_back("Extended alignment");
+ branches.emplace_back(&strct.members);
+ append_subtree(branches);
}
void DumpTree::visit(VariableDeclaration &var)