mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen and basic optimizer support for coroutines.
This commit is contained in:
@@ -307,6 +307,7 @@ private:
|
||||
case Node::Kind::ClassMetadataBaseOffset:
|
||||
case Node::Kind::CFunctionPointer:
|
||||
case Node::Kind::Constructor:
|
||||
case Node::Kind::CoroutineContinuationPrototype:
|
||||
case Node::Kind::CurryThunk:
|
||||
case Node::Kind::DispatchThunk:
|
||||
case Node::Kind::Deallocator:
|
||||
@@ -1414,6 +1415,10 @@ NodePointer NodePrinter::print(NodePointer Node, bool asPrefixContext) {
|
||||
Printer << "nominal type descriptor for ";
|
||||
print(Node->getChild(0));
|
||||
return nullptr;
|
||||
case Node::Kind::CoroutineContinuationPrototype:
|
||||
Printer << "coroutine continuation prototype for ";
|
||||
print(Node->getChild(0));
|
||||
return nullptr;
|
||||
case Node::Kind::ValueWitness:
|
||||
Printer << toString(ValueWitnessKind(Node->getIndex()));
|
||||
if (Options.ShortenValueWitness) Printer << " for ";
|
||||
|
||||
Reference in New Issue
Block a user