comparison 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
comparison
equal deleted inserted replaced
1145:40caa8207b3e 1146:1860414bf3b7
37 { 37 {
38 //printf("Dsymbol::Dsymbol(%p)\n", this); 38 //printf("Dsymbol::Dsymbol(%p)\n", this);
39 this->ident = NULL; 39 this->ident = NULL;
40 this->c_ident = NULL; 40 this->c_ident = NULL;
41 this->parent = NULL; 41 this->parent = NULL;
42 #if IN_DMD
42 this->csym = NULL; 43 this->csym = NULL;
43 this->isym = NULL; 44 this->isym = NULL;
45 #endif
44 this->loc = 0; 46 this->loc = 0;
45 this->comment = NULL; 47 this->comment = NULL;
46 48
49 #if IN_LLVM
47 this->llvmInternal = LLVMnone; 50 this->llvmInternal = LLVMnone;
51 #endif
48 } 52 }
49 53
50 Dsymbol::Dsymbol(Identifier *ident) 54 Dsymbol::Dsymbol(Identifier *ident)
51 { 55 {
52 //printf("Dsymbol::Dsymbol(%p, ident)\n", this); 56 //printf("Dsymbol::Dsymbol(%p, ident)\n", this);
53 this->ident = ident; 57 this->ident = ident;
54 this->c_ident = NULL; 58 this->c_ident = NULL;
55 this->parent = NULL; 59 this->parent = NULL;
60 #if IN_DMD
56 this->csym = NULL; 61 this->csym = NULL;
57 this->isym = NULL; 62 this->isym = NULL;
63 #endif
58 this->loc = 0; 64 this->loc = 0;
59 this->comment = NULL; 65 this->comment = NULL;
60 66
67 #if IN_LLVM
61 this->llvmInternal = LLVMnone; 68 this->llvmInternal = LLVMnone;
69 #endif
62 } 70 }
63 71
64 int Dsymbol::equals(Object *o) 72 int Dsymbol::equals(Object *o)
65 { Dsymbol *s; 73 { Dsymbol *s;
66 74