mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-25 02:13:51 +01:00
Preliminary vector support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user