comparison dmd/inline.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 aaade6ded589
children 8026319762be
comparison
equal deleted inserted replaced
1145:40caa8207b3e 1146:1860414bf3b7
549 VarDeclaration *vto; 549 VarDeclaration *vto;
550 550
551 vto = new VarDeclaration(vd->loc, vd->type, vd->ident, vd->init); 551 vto = new VarDeclaration(vd->loc, vd->type, vd->ident, vd->init);
552 *vto = *vd; 552 *vto = *vd;
553 vto->parent = ids->parent; 553 vto->parent = ids->parent;
554 #if IN_DMD
554 vto->csym = NULL; 555 vto->csym = NULL;
555 vto->isym = NULL; 556 vto->isym = NULL;
557 #endif
556 558
557 ids->from.push(vd); 559 ids->from.push(vd);
558 ids->to.push(vto); 560 ids->to.push(vto);
559 561
560 if (vd->init) 562 if (vd->init)
643 VarDeclaration *vto; 645 VarDeclaration *vto;
644 646
645 vto = new VarDeclaration(vd->loc, vd->type, vd->ident, vd->init); 647 vto = new VarDeclaration(vd->loc, vd->type, vd->ident, vd->init);
646 *vto = *vd; 648 *vto = *vd;
647 vto->parent = ids->parent; 649 vto->parent = ids->parent;
650 #if IN_DMD
648 vto->csym = NULL; 651 vto->csym = NULL;
649 vto->isym = NULL; 652 vto->isym = NULL;
653 #endif
650 654
651 ids->from.push(vd); 655 ids->from.push(vd);
652 ids->to.push(vto); 656 ids->to.push(vto);
653 657
654 if (vd->init) 658 if (vd->init)
680 VarDeclaration *vto; 684 VarDeclaration *vto;
681 685
682 vto = new VarDeclaration(vd->loc, vd->type, vd->ident, vd->init); 686 vto = new VarDeclaration(vd->loc, vd->type, vd->ident, vd->init);
683 *vto = *vd; 687 *vto = *vd;
684 vto->parent = ids->parent; 688 vto->parent = ids->parent;
689 #if IN_DMD
685 vto->csym = NULL; 690 vto->csym = NULL;
686 vto->isym = NULL; 691 vto->isym = NULL;
692 #endif
687 693
688 ids->from.push(vd); 694 ids->from.push(vd);
689 ids->to.push(vto); 695 ids->to.push(vto);
690 696
691 if (vd->init) 697 if (vd->init)