From e12c58abada5d87b37434a7909ecabc8ca531f59 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 21 Jul 2008 20:11:42 +0200 Subject: [PATCH] Do not strip the leading underscore for typeinfo mangles on Windows. --- dmd/mtype.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dmd/mtype.c b/dmd/mtype.c index 4811e4ab..4899041d 100644 --- a/dmd/mtype.c +++ b/dmd/mtype.c @@ -717,8 +717,10 @@ Identifier *Type::getTypeInfoIdent(int internal) 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;