remove the ASTContext argument from Type::transform,

(various) FunctionType::get's, ArrayType::get,
ArraySliceType::get, OptionalType::get, and a few
other places.

There is more to be done here, but this is all I plan to do
for now.


Swift SVN r11497
This commit is contained in:
Chris Lattner
2013-12-20 02:23:21 +00:00
parent 1472e4d914
commit b29748a6be
35 changed files with 314 additions and 391 deletions

View File

@@ -496,7 +496,7 @@ tryUserConversion(ConstraintSystem &cs, Type type, ConstraintKind kind,
// The conversion function will have function type TI -> TO, for fresh
// type variables TI and TO.
cs.addValueMemberConstraint(type, name,
FunctionType::get(inputTV, outputTV, ctx),
FunctionType::get(inputTV, outputTV),
memberLocator);
// A conversion function must accept an empty parameter list ().
@@ -1128,7 +1128,7 @@ ConstraintSystem::simplifyConstructionConstraint(Type valueType, Type argType,
// match on the result type because the constructors for enums and struct
// types always return a value of exactly that type.
addValueMemberConstraint(valueType, name,
FunctionType::get(tv, valueType, context),
FunctionType::get(tv, valueType),
getConstraintLocator(
locator,
ConstraintLocator::ConstructorMember));