mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 20:33:14 +01:00
Do not strip the leading underscore for typeinfo mangles on Windows.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user