Preliminary vector support

This commit is contained in:
Alexey Prokhin
2012-02-16 14:42:23 +04:00
parent 5af48edec3
commit ae7f0ca7e7
12 changed files with 190 additions and 9 deletions
+21
View File
@@ -895,4 +895,25 @@ void TypeInfoWildDeclaration::llvmDefine()
b.finalize(ir.irGlobal);
}
/* ========================================================================= */
#if DMDV2
void TypeInfoVectorDeclaration::llvmDefine()
{
Logger::println("TypeInfoVectorDeclaration::llvmDefine() %s", toChars());
LOG_SCOPE;
assert(tinfo->ty == Tvector);
TypeVector *tv = (TypeVector *)tinfo;
RTTIBuilder b(Type::typeinfovector);
// TypeInfo base
b.push_typeinfo(tv->basetype);
// finish
b.finalize(ir.irGlobal);
}
#endif
#endif