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

@@ -943,7 +943,7 @@ public:
if (IsDynamicLookup) {
// Values of properties that were found on a DynamicLookup have
// Optional<T> type.
VarType = OptionalType::get(VarType, Ctx);
VarType = OptionalType::get(VarType);
}
addTypeAnnotation(Builder, VarType);
}
@@ -1158,7 +1158,7 @@ public:
if (IsDynamicLookup) {
// Values of properties that were found on a DynamicLookup have
// Optional<T> type.
T = OptionalType::get(T, Ctx);
T = OptionalType::get(T);
}
addTypeAnnotation(Builder, T);
}