[ABI/IRGen] Add custom function parameter flags representation for metadata use

This commit is contained in:
Pavel Yaskevich
2017-10-29 21:53:16 -07:00
parent e9d4a5304e
commit 622cc1c64a
14 changed files with 170 additions and 95 deletions

View File

@@ -765,7 +765,9 @@ FUNCTION(ArrayDestroy, swift_arrayDestroy, DefaultCC,
// const Metadata *result);
FUNCTION(GetFunctionMetadata, swift_getFunctionTypeMetadata, DefaultCC,
RETURNS(TypeMetadataPtrTy),
ARGS(SizeTy, TypeMetadataPtrTy->getPointerTo(), Int32Ty->getPointerTo(),
ARGS(SizeTy,
TypeMetadataPtrTy->getPointerTo(0),
Int32Ty->getPointerTo(0),
TypeMetadataPtrTy),
ATTRS(NoUnwind, ReadNone))