Remove the "-disable-self-type-mangling" flag and corresponding language option

NFC
This commit is contained in:
Doug Gregor
2016-01-13 22:22:21 -08:00
parent 32b797d744
commit 12d6f02c45
4 changed files with 1 additions and 13 deletions

View File

@@ -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();