Mercurial > projects > ldc
view gen/classes.h @ 237:a168a2c3ea48 trunk
[svn r253] Removed -inlineasm option. inline asm is now enabled by default unless the new -noasm option is passed.
Tried adding a stack trace print when compiler crashes, not sure it's working though.
Changed data layouts to match that of llvm-gcc.
Fixed casting function pointers.
Added support checks in AsmStatement.
author | lindquist |
---|---|
date | Sun, 08 Jun 2008 19:09:24 +0200 |
parents | 0806379a5eca |
children | a34078905d01 |
line wrap: on
line source
#ifndef LLVMDC_GEN_CLASSES_H #define LLVMDC_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(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* ptr, ClassDeclaration* cd, Type* t, unsigned os, DStructIndexVector& idxs); LLValue* DtoVirtualFunctionPointer(DValue* inst, FuncDeclaration* fdecl); #endif