Mercurial > projects > ldc
view gen/classes.h @ 812:6c2ff06c4201
Fixed a nasty bug with how interface vtables for class initializers were output, causing some class fields to be skipped.
Fixed a problem in definition of ClassInfos where an invalid constant was potentially used. This needs to be looked into proper as it might happen again in the future.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 01 Dec 2008 04:37:54 +0100 |
parents | 5a2983f97498 |
children | 79758fd2f48a |
line wrap: on
line source
#ifndef LDC_GEN_CLASSES_H #define LDC_GEN_CLASSES_H #include "gen/structs.h" /** * Resolves the llvm type for a class declaration */ void DtoResolveClass(ClassDeclaration* cd); /** * Provides the llvm declaration for a class declaration */ void DtoDeclareClass(ClassDeclaration* cd); /** * Constructs the constant initializer for a class declaration */ void DtoConstInitClass(ClassDeclaration* cd); /** * Provides the llvm definition for a class declaration */ void DtoDefineClass(ClassDeclaration* cd); void DtoDeclareClassInfo(ClassDeclaration* cd); void DtoDefineClassInfo(ClassDeclaration* cd); DValue* DtoNewClass(Loc loc, TypeClass* type, NewExp* newexp); void DtoInitClass(TypeClass* tc, LLValue* dst); DValue* DtoCallClassCtor(TypeClass* type, CtorDeclaration* ctor, Array* arguments, LLValue* mem); void DtoFinalizeClass(LLValue* inst); DValue* DtoCastClass(DValue* val, Type* to); DValue* DtoDynamicCastObject(DValue* val, Type* to); DValue* DtoCastInterfaceToObject(DValue* val, Type* to); DValue* DtoDynamicCastInterface(DValue* val, Type* to); LLValue* DtoIndexClass(LLValue* src, ClassDeclaration* sd, VarDeclaration* vd); LLValue* DtoVirtualFunctionPointer(DValue* inst, FuncDeclaration* fdecl); #endif