comparison dmd/mtype.c @ 375:3c4460b988bd

Do not strip the leading underscore for typeinfo mangles on Windows.
author Christian Kamm <kamm incasoftware de>
date Mon, 21 Jul 2008 20:11:42 +0200
parents aaade6ded589
children d8234836b40f
comparison
equal deleted inserted replaced
374:1f20b9f7de1b 375:3c4460b988bd
715 toDecoBuffer(&buf); 715 toDecoBuffer(&buf);
716 len = buf.offset; 716 len = buf.offset;
717 name = (char *)alloca(19 + sizeof(len) * 3 + len + 1); 717 name = (char *)alloca(19 + sizeof(len) * 3 + len + 1);
718 buf.writeByte(0); 718 buf.writeByte(0);
719 sprintf(name, "_D%dTypeInfo_%s6__initZ", 9 + len, buf.data); 719 sprintf(name, "_D%dTypeInfo_%s6__initZ", 9 + len, buf.data);
720 if (global.params.isWindows) 720 // LLVMDC
721 name++; // C mangling will add it back in 721 // it is not clear where the underscore that's stripped here is added back in
722 // if (global.params.isWindows)
723 // name++; // C mangling will add it back in
722 //printf("name = %s\n", name); 724 //printf("name = %s\n", name);
723 id = Lexer::idPool(name); 725 id = Lexer::idPool(name);
724 return id; 726 return id;
725 } 727 }
726 728