comparison ast/Exp.d @ 98:7f9240d4ddc1 new_gen

Fixed tests - forgot some stuff in codegen.
author Anders Johnsen <skabet@gmail.com>
date Tue, 06 May 2008 21:55:29 +0200
parents 438e6ed4cda1
children 7ff4bc2accf2 189c049cbfcc
comparison
equal deleted inserted replaced
97:198ad05f3ace 98:7f9240d4ddc1
509 char[] getMangled() 509 char[] getMangled()
510 { 510 {
511 DType t = type; 511 DType t = type;
512 512
513 if(name == "main") 513 if(name == "main")
514 return "_Dmain"; 514 return "main";
515 515
516 return "_D"~name~t.mangle; 516 return "_D"~name~t.mangle;
517 } 517 }
518 518
519 hash_t toHash() 519 hash_t toHash()