IRGen and basic optimizer support for coroutines.

This commit is contained in:
John McCall
2018-01-07 01:13:42 -05:00
parent b80808bbc1
commit 3c54c0edfc
39 changed files with 1886 additions and 153 deletions

View File

@@ -129,6 +129,10 @@ std::string LinkEntity::mangleAsString() const {
getProtocolConformance(), assocConf.first, assocConf.second);
}
case Kind::CoroutineContinuationPrototype:
return mangler.mangleCoroutineContinuationPrototype(
cast<SILFunctionType>(getType()));
// An Objective-C class reference reference. The symbol is private, so
// the mangling is unimportant; it should just be readable in LLVM IR.
case Kind::ObjCClassRef: {