[SIL] Add SILFunctionType flag for async.

This commit is contained in:
Nate Chandler
2020-08-17 16:40:00 -07:00
parent 4145ef7a12
commit 9b8828848d
37 changed files with 153 additions and 88 deletions

View File

@@ -501,6 +501,8 @@ public:
IsWithoutActuallyEscapingThunk = val;
}
bool isAsync() const { return LoweredType->isAsync(); }
/// Returns the calling convention used by this entry point.
SILFunctionTypeRepresentation getRepresentation() const {
return getLoweredFunctionType()->getRepresentation();