[attribute] rename @noinline to @inline(never).

Add support for parsing inline(never), it can be easily expanded to
handle inline(always).

rdar://17527111


Swift SVN r19447
This commit is contained in:
Manman Ren
2014-07-02 01:27:05 +00:00
parent 62a96d7ff4
commit 2b2330bf5b
18 changed files with 121 additions and 25 deletions

View File

@@ -1487,6 +1487,14 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext) {
break;
}
case decls_block::Inline_DECL_ATTR: {
unsigned kind;
serialization::decls_block::InlineDeclAttrLayout::readRecord(
scratch, kind);
Attr = new (ctx) InlineAttr((InlineKind)kind);
break;
}
case decls_block::Availability_DECL_ATTR: {
bool isImplicit;
bool isUnavailable;