Mercurial > projects > ldc
comparison dmd/func.c @ 1146:1860414bf3b7
* Moved ir/irsymbol.cpp/h into ir/irdsymbol.cpp/h.
* Added #if IN_DMD versioning around DMD backend specific code in the D1 frontend, D2 is currently broken.
* All part of a greater cleanup scheme.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Thu, 26 Mar 2009 20:45:53 +0100 |
parents | b28a57f4b530 |
children | 08c1c3bfea5a |
comparison
equal
deleted
inserted
replaced
1145:40caa8207b3e | 1146:1860414bf3b7 |
---|---|
74 inferRetType = (type && type->nextOf() == NULL); | 74 inferRetType = (type && type->nextOf() == NULL); |
75 scope = NULL; | 75 scope = NULL; |
76 hasReturnExp = 0; | 76 hasReturnExp = 0; |
77 nrvo_can = 1; | 77 nrvo_can = 1; |
78 nrvo_var = NULL; | 78 nrvo_var = NULL; |
79 #if IN_DMD | |
79 shidden = NULL; | 80 shidden = NULL; |
80 | 81 #endif |
82 | |
83 #if IN_LLVM | |
81 // LDC | 84 // LDC |
82 isArrayOp = false; | 85 isArrayOp = false; |
83 allowInlining = false; | 86 allowInlining = false; |
87 #endif | |
84 } | 88 } |
85 | 89 |
86 Dsymbol *FuncDeclaration::syntaxCopy(Dsymbol *s) | 90 Dsymbol *FuncDeclaration::syntaxCopy(Dsymbol *s) |
87 { | 91 { |
88 FuncDeclaration *f; | 92 FuncDeclaration *f; |