Remove LDC-only workaround for 2206.

The bug has been fixed in upstream at least since 2.052.
This commit is contained in:
David Nadlinger
2013-05-31 21:49:23 +02:00
parent 7e7af8c920
commit 1b4f0c5d4a
2 changed files with 0 additions and 27 deletions

View File

@@ -285,33 +285,7 @@ char *TemplateInstance::mangle(bool isv)
return id;
}
#if IN_LLVM
char *TemplateMixin::mangle()
{
OutBuffer buf;
char *id;
#if 0
printf("TemplateMixin::mangle() %s", toChars());
if (parent)
printf(" parent = %s %s", parent->kind(), parent->toChars());
printf("\n");
#endif
id = ident ? ident->toChars() : toChars();
if (parent)
{
char *p = parent->mangle();
if (p[0] == '_' && p[1] == 'D')
p += 2;
buf.writestring(p);
}
buf.printf("%llu%s", (ulonglong)strlen(id), id);
id = buf.toChars();
buf.data = NULL;
//printf("TemplateMixin::mangle() %s = %s\n", toChars(), id);
return id;
}
#endif
char *Dsymbol::mangle(bool isv)
{

View File

@@ -376,7 +376,6 @@ struct TemplateMixin : TemplateInstance
int hasPointers();
void setFieldOffset(AggregateDeclaration *ad, unsigned *poffset, bool isunion);
char *toChars();
char *mangle();
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
void toJson(JsonOut *json);