# HG changeset patch # User Christian Kamm # Date 1216663902 -7200 # Node ID 3c4460b988bd00e363de5ca8a953962349b49cfd # Parent 1f20b9f7de1bc81fa9c952979702ca010c409d1d Do not strip the leading underscore for typeinfo mangles on Windows. diff -r 1f20b9f7de1b -r 3c4460b988bd dmd/mtype.c --- a/dmd/mtype.c Mon Jul 21 20:11:15 2008 +0200 +++ b/dmd/mtype.c Mon Jul 21 20:11:42 2008 +0200 @@ -717,8 +717,10 @@ name = (char *)alloca(19 + sizeof(len) * 3 + len + 1); buf.writeByte(0); sprintf(name, "_D%dTypeInfo_%s6__initZ", 9 + len, buf.data); - if (global.params.isWindows) - name++; // C mangling will add it back in +// LLVMDC +// it is not clear where the underscore that's stripped here is added back in +// if (global.params.isWindows) +// name++; // C mangling will add it back in //printf("name = %s\n", name); id = Lexer::idPool(name); return id;