Mercurial > projects > ldc
comparison gen/functions.cpp @ 163:a8cd9bc1021a trunk
[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author | lindquist |
---|---|
date | Mon, 05 May 2008 07:36:29 +0200 |
parents | 1856c62af24b |
children | db9890b3fb64 |
comparison
equal
deleted
inserted
replaced
162:1856c62af24b | 163:a8cd9bc1021a |
---|---|
382 if (fdecl->isMain()) { | 382 if (fdecl->isMain()) { |
383 gIR->mainFunc = func; | 383 gIR->mainFunc = func; |
384 } | 384 } |
385 | 385 |
386 // static ctor | 386 // static ctor |
387 if (fdecl->isStaticCtorDeclaration()) { | 387 if (fdecl->isStaticCtorDeclaration() && fdecl->getModule() == gIR->dmodule) { |
388 gIR->ctors.push_back(fdecl); | 388 gIR->ctors.push_back(fdecl); |
389 } | 389 } |
390 // static dtor | 390 // static dtor |
391 else if (fdecl->isStaticDtorDeclaration()) { | 391 else if (fdecl->isStaticDtorDeclaration() && fdecl->getModule() == gIR->dmodule) { |
392 gIR->dtors.push_back(fdecl); | 392 gIR->dtors.push_back(fdecl); |
393 } | 393 } |
394 | 394 |
395 // we never reference parameters of function prototypes | 395 // we never reference parameters of function prototypes |
396 if (!declareOnly) | 396 if (!declareOnly) |