comparison gen/llvmhelpers.h @ 1255:9014d7f0433f

Rewrote runtime struct literal codegen.
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Wed, 22 Apr 2009 03:08:28 +0200
parents 83d3b25c2213
children 0686701178d3
comparison
equal deleted inserted replaced
1254:747fdd9245d7 1255:9014d7f0433f
100 // initializer helpers 100 // initializer helpers
101 LLConstant* DtoConstInitializer(Loc loc, Type* type, Initializer* init); 101 LLConstant* DtoConstInitializer(Loc loc, Type* type, Initializer* init);
102 LLConstant* DtoConstExpInit(Loc loc, Type* t, Expression* exp); 102 LLConstant* DtoConstExpInit(Loc loc, Type* t, Expression* exp);
103 DValue* DtoInitializer(LLValue* target, Initializer* init); 103 DValue* DtoInitializer(LLValue* target, Initializer* init);
104 104
105 LLValue* DtoExprValue(Type* type, Expression* e);
106
105 // annotation generator 107 // annotation generator
106 void DtoAnnotation(const char* str); 108 void DtoAnnotation(const char* str);
107 109
108 // getting typeinfo of type, base=true casts to object.TypeInfo 110 // getting typeinfo of type, base=true casts to object.TypeInfo
109 LLConstant* DtoTypeInfoOf(Type* ty, bool base=true); 111 LLConstant* DtoTypeInfoOf(Type* ty, bool base=true);