mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the "-disable-self-type-mangling" flag and corresponding language option
NFC
This commit is contained in:
@@ -621,10 +621,7 @@ Type Mangler::getDeclTypeForMangling(const ValueDecl *decl,
|
||||
}
|
||||
|
||||
// Shed the 'self' type and generic requirements from method manglings.
|
||||
if (C.LangOpts.DisableSelfTypeMangling
|
||||
&& isMethodDecl(decl)
|
||||
&& type && !type->is<ErrorType>()) {
|
||||
|
||||
if (isMethodDecl(decl) && type && !type->is<ErrorType>()) {
|
||||
// Drop the Self argument clause from the type.
|
||||
type = type->castTo<AnyFunctionType>()->getResult();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user