Mercurial > projects > ldc
diff gen/llvmhelpers.cpp @ 1228:79758fd2f48a
Added Doxygen file.
Completely seperated type and symbol generation. Should fix a lot of bugs, but is not yet 100% complete.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Wed, 15 Apr 2009 20:06:25 +0200 |
parents | 83d3b25c2213 |
children | 9014d7f0433f |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Mon Apr 13 17:42:36 2009 +0200 +++ b/gen/llvmhelpers.cpp Wed Apr 15 20:06:25 2009 +0200 @@ -1069,7 +1069,8 @@ else if (StructInitializer* si = init->isStructInitializer()) { Logger::println("const struct initializer"); - _init = DtoConstStructInitializer(si); + si->ad->codegen(Type::sir); + return si->ad->ir.irStruct->createStructInitializer(si); } else if (ArrayInitializer* ai = init->isArrayInitializer()) {