Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions clang/lib/CodeGen/CGDebugInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5869,15 +5869,6 @@ struct ReconstitutableType : public RecursiveASTVisitor<ReconstitutableType> {
Reconstitutable = false;
return false;
}
bool VisitType(Type *T) {
// _BitInt(N) isn't reconstitutable because the bit width isn't encoded in
// the DWARF, only the byte width.
if (T->isBitIntType()) {
Reconstitutable = false;
return false;
}
return true;
}
bool TraverseEnumType(EnumType *ET, bool = false) {
// Unnamed enums can't be reconstituted due to a lack of column info we
// produce in the DWARF, so we can't get Clang's full name back.
Expand Down
22 changes: 19 additions & 3 deletions clang/test/DebugInfo/CXX/simple-template-names.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,28 @@ void f() {

f3<t1>();
// CHECK: !DISubprogram(name: "_STN|f3|<t1>",

f1<_BitInt(3)>();
// CHECK: !DISubprogram(name: "f1<_BitInt(3)>",
// CHECK: !DISubprogram(name: "_STN|f1|<_BitInt(3)>",

f1<const unsigned _BitInt(5)>();
// CHECK: !DISubprogram(name: "f1<const unsigned _BitInt(5)>",
// CHECK: !DISubprogram(name: "_STN|f1|<const unsigned _BitInt(5)>",

f1<_BitInt(120)>();
// CHECK: !DISubprogram(name: "_STN|f1|<_BitInt(120)>",

f1<const unsigned _BitInt(120)>();
// CHECK: !DISubprogram(name: "_STN|f1|<const unsigned _BitInt(120)>",

f2<_BitInt(2), 1>();
// CHECK: !DISubprogram(name: "_STN|f2|<_BitInt(2), (_BitInt(2))1>",

f2<_BitInt(64), 12>();
// CHECK: !DISubprogram(name: "_STN|f2|<_BitInt(64), (_BitInt(64))12>",

// FIXME: make block forms reconstitutable
f2<_BitInt(65), 1>();
// CHECK: !DISubprogram(name: "f2<_BitInt(65), (_BitInt(65))1>",

// Add a parameter just so this differs from other attributed function types
// that don't mangle differently.
Expand Down
Loading