Mercurial > projects > ldc
comparison gen/classes.cpp @ 1239:ff1b4cc2e9be
Make !TypeInfo output lazy unless we need to provide full definitions in general.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Thu, 16 Apr 2009 22:20:26 +0200 |
parents | 212ec2d9d176 |
children | e1b0c5c74c58 |
comparison
equal
deleted
inserted
replaced
1238:3ddec21fe2b6 | 1239:ff1b4cc2e9be |
---|---|
82 it.next(); | 82 it.next(); |
83 } | 83 } |
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 // emit typeinfo | |
88 DtoTypeInfoOf(cd->type); | |
89 | |
90 // define classinfo | |
91 if (needs_def) | 87 if (needs_def) |
92 { | 88 { |
89 // emit typeinfo | |
90 DtoTypeInfoOf(cd->type); | |
91 | |
92 // define classinfo | |
93 ClassZ->setInitializer(irstruct->getClassInfoInit()); | 93 ClassZ->setInitializer(irstruct->getClassInfoInit()); |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 ////////////////////////////////////////////////////////////////////////////////////////// | 97 ////////////////////////////////////////////////////////////////////////////////////////// |