mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add basic parsing, sema and mangling support for throwing function types. Next up, metadata and serialization support, as well as more tests.
Swift SVN r26767
This commit is contained in:
@@ -3177,7 +3177,7 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
|
||||
auto Info = FunctionType::ExtInfo(callingConvention.getValue(),
|
||||
getFunctionRepresentation(thin, blockCompatible),
|
||||
noreturn, autoClosure, noescape);
|
||||
noreturn, autoClosure, noescape,/*throws*/false);
|
||||
|
||||
typeOrOffset = FunctionType::get(getType(inputID), getType(resultID),
|
||||
Info);
|
||||
@@ -3552,7 +3552,8 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
|
||||
auto Info = PolymorphicFunctionType::ExtInfo(callingConvention.getValue(),
|
||||
rep,
|
||||
noreturn);
|
||||
noreturn,
|
||||
/*throws*/false);
|
||||
|
||||
typeOrOffset = PolymorphicFunctionType::get(getType(inputID),
|
||||
getType(resultID),
|
||||
@@ -3603,7 +3604,7 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
SmallVector<Requirement, 4> requirements;
|
||||
readGenericRequirements(requirements);
|
||||
auto info = GenericFunctionType::ExtInfo(callingConvention.getValue(),
|
||||
rep, noreturn);
|
||||
rep, noreturn,/*throws*/false);
|
||||
|
||||
auto sig = GenericSignature::get(genericParams, requirements);
|
||||
typeOrOffset = GenericFunctionType::get(sig,
|
||||
@@ -3655,7 +3656,8 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
}
|
||||
SILFunctionType::ExtInfo extInfo(callingConvention.getValue(),
|
||||
getFunctionRepresentation(thin, block),
|
||||
noreturn, /*autoclosure*/false, noescape);
|
||||
noreturn, /*autoclosure*/false, noescape,
|
||||
/*throws*/false);
|
||||
|
||||
// Process the result.
|
||||
auto interfaceResultConvention
|
||||
|
||||
Reference in New Issue
Block a user