Mercurial > projects > ldc
diff gen/tollvm.h @ 85:f869c636a113 trunk
[svn r89] Fixed a bunch of problems with template instance across multiple modules.
Fixed initialization of function local static variables, with a non const initializer (now happens on first call using a global to make sure it only happens once.)
author | lindquist |
---|---|
date | Fri, 02 Nov 2007 06:32:32 +0100 |
parents | d8dd47ef3973 |
children | fd32135dca3e |
line wrap: on
line diff
--- a/gen/tollvm.h Fri Nov 02 02:27:41 2007 +0100 +++ b/gen/tollvm.h Fri Nov 02 06:32:32 2007 +0100 @@ -34,7 +34,7 @@ void DtoInitClass(TypeClass* tc, llvm::Value* dst); llvm::Constant* DtoConstInitializer(Type* type, Initializer* init); -void DtoInitializer(Initializer* init); +elem* DtoInitializer(Initializer* init); llvm::Function* LLVM_DeclareMemSet32(); llvm::Function* LLVM_DeclareMemSet64(); @@ -68,4 +68,6 @@ llvm::Value* DtoIndexStruct(llvm::Value* ptr, StructDeclaration* sd, Type* t, unsigned os, std::vector<unsigned>& idxs); +bool DtoIsTemplateInstance(Dsymbol* s); + #include "enums.h"