mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cxx-interop] Remove symbolic import mode
Importing C++ class templates in symbolic mode has proven to be problematic in interaction with other compiler features, and it isn't used widely. This change removes the feature. rdar://150528798
This commit is contained in:
@@ -2274,11 +2274,6 @@ ImportedName NameImporter::importNameImpl(const clang::NamedDecl *D,
|
||||
|
||||
if (auto classTemplateSpecDecl =
|
||||
dyn_cast<clang::ClassTemplateSpecializationDecl>(D)) {
|
||||
/// Symbolic specializations get imported as the symbolic class template
|
||||
/// type.
|
||||
if (importSymbolicCXXDecls)
|
||||
return importNameImpl(classTemplateSpecDecl->getSpecializedTemplate(),
|
||||
version, givenName);
|
||||
if (!isa<clang::ClassTemplatePartialSpecializationDecl>(D)) {
|
||||
auto name = printClassTemplateSpecializationName(classTemplateSpecDecl,
|
||||
swiftCtx, this, version);
|
||||
|
||||
Reference in New Issue
Block a user