diff dmd/attrib.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 b30fe7e1dbb9
children dbe4af57b240
line wrap: on
line diff
--- a/dmd/attrib.c	Thu Mar 26 18:46:21 2009 +0100
+++ b/dmd/attrib.c	Thu Mar 26 20:45:53 2009 +0100
@@ -27,19 +27,23 @@
 #include "parse.h"
 #include "template.h"
 
+#if IN_LLVM
 #include "../gen/enums.h"
 
-
 #include "llvm/Support/CommandLine.h"
 
 static llvm::cl::opt<bool> ignoreUnsupportedPragmas("ignore",
     llvm::cl::desc("Ignore unsupported pragmas"),
     llvm::cl::ZeroOrMore);
 
+#endif
 
 
 extern void obj_includelib(const char *name);
+
+#if IN_DMD
 void obj_startaddress(Symbol *s);
+#endif
 
 
 /********************************* AttribDeclaration ****************************/
@@ -180,6 +184,7 @@
     }
 }
 
+#if IN_DMD
 int AttribDeclaration::cvMember(unsigned char *p)
 {
     int nwritten = 0;
@@ -198,6 +203,7 @@
     }
     return nwritten;
 }
+#endif
 
 int AttribDeclaration::hasPointers()
 {