diff dmd/dsymbol.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/dsymbol.c	Thu Mar 26 18:46:21 2009 +0100
+++ b/dmd/dsymbol.c	Thu Mar 26 20:45:53 2009 +0100
@@ -39,12 +39,16 @@
     this->ident = NULL;
     this->c_ident = NULL;
     this->parent = NULL;
+#if IN_DMD
     this->csym = NULL;
     this->isym = NULL;
+#endif
     this->loc = 0;
     this->comment = NULL;
 
+#if IN_LLVM
     this->llvmInternal = LLVMnone;
+#endif
 }
 
 Dsymbol::Dsymbol(Identifier *ident)
@@ -53,12 +57,16 @@
     this->ident = ident;
     this->c_ident = NULL;
     this->parent = NULL;
+#if IN_DMD
     this->csym = NULL;
     this->isym = NULL;
+#endif
     this->loc = 0;
     this->comment = NULL;
 
+#if IN_LLVM
     this->llvmInternal = LLVMnone;
+#endif
 }
 
 int Dsymbol::equals(Object *o)