Skip to content

Commit 6c8d6a0

Browse files
authored
Merge pull request #60305 from apple/egorzhdan/cxx-namespace-perf-pt2
[cxx-interop] Improve performance of importing C++ namespaces, part 2
2 parents bc978d2 + ddf2ea2 commit 6c8d6a0

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/ClangImporter/SwiftLookupTable.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,19 +2143,6 @@ void SwiftLookupTableWriter::populateTableWithDecl(SwiftLookupTable &table,
21432143

21442144
// Add this entry to the lookup table.
21452145
addEntryToLookupTable(table, named, nameImporter);
2146-
if (auto typedefDecl = dyn_cast<clang::TypedefNameDecl>(named)) {
2147-
if (auto typedefType = dyn_cast<clang::TemplateSpecializationType>(
2148-
typedefDecl->getUnderlyingType())) {
2149-
if (auto CTSD = dyn_cast<clang::ClassTemplateSpecializationDecl>(
2150-
typedefType->getAsTagDecl())) {
2151-
// Adding template instantiation behind typedef as a top-level entry
2152-
// so the instantiation appears in the API.
2153-
assert(!isa<clang::ClassTemplatePartialSpecializationDecl>(CTSD) &&
2154-
"Class template partial specialization cannot appear behind typedef");
2155-
addEntryToLookupTable(table, CTSD, nameImporter);
2156-
}
2157-
}
2158-
}
21592146
}
21602147

21612148
void SwiftLookupTableWriter::populateTable(SwiftLookupTable &table,

0 commit comments

Comments
 (0)