Mercurial > projects > ldc
diff dmd/attrib.c @ 1147:dbe4af57b240
Changed use of toObjFile to a new codegen method.
More versioning of DMD specific codegen code.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 27 Mar 2009 17:54:27 +0100 |
parents | 1860414bf3b7 |
children | 521dd1626d76 |
line wrap: on
line diff
--- a/dmd/attrib.c Thu Mar 26 20:45:53 2009 +0100 +++ b/dmd/attrib.c Fri Mar 27 17:54:27 2009 +0100 @@ -171,6 +171,8 @@ } } +#if IN_DMD + void AttribDeclaration::toObjFile(int multiobj) { Array *d = include(NULL, NULL); @@ -184,7 +186,6 @@ } } -#if IN_DMD int AttribDeclaration::cvMember(unsigned char *p) { int nwritten = 0; @@ -1142,6 +1143,7 @@ return "pragma"; } +#if IN_DMD void PragmaDeclaration::toObjFile(int multiobj) { if (ident == Id::lib) @@ -1160,6 +1162,7 @@ } AttribDeclaration::toObjFile(multiobj); } +#endif void PragmaDeclaration::toCBuffer(OutBuffer *buf, HdrGenState *hgs) {