changeset 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 1f20b9f7de1b
children 6788e98ec1cd
files dmd/mtype.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;