DebugInfo: fix a couple of spurious spaces in simplified template name rebuilding

This commit is contained in:
David Blaikie 2022-02-16 11:18:31 -08:00
parent da7c77b82c
commit d7c4f7f147
3 changed files with 9010 additions and 6921 deletions

View File

@ -321,6 +321,8 @@ int main() {
t12 v4;
f1<_BitInt(3)>();
f1<const unsigned _BitInt(5)>();
f1<void(t1<>, t1<>)>();
f1<int t1<>::*>();
}
void t8::mem() {
struct t7 { };

View File

@ -250,6 +250,7 @@ struct DWARFTypePrinter {
OS << ' ';
if (DWARFDie Cont = resolveReferencedType(D, DW_AT_containing_type)) {
appendQualifiedName(Cont);
EndedWithTemplate = false;
OS << "::";
}
OS << "*";
@ -532,8 +533,10 @@ struct DWARFTypePrinter {
appendQualifiedName(TypeAttr ? resolveReferencedType(C, *TypeAttr)
: DWARFDie());
}
if (IsTemplate && *FirstParameter && FirstParameter == &FirstParameterValue)
if (IsTemplate && *FirstParameter && FirstParameter == &FirstParameterValue) {
OS << '<';
EndedWithTemplate = false;
}
return IsTemplate;
}
void decomposeConstVolatile(DWARFDie &N, DWARFDie &T, DWARFDie &C,

File diff suppressed because it is too large Load Diff