mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -230,7 +230,12 @@ bool SILDeclRef::isTransparent() const {
|
||||
|
||||
/// \brief True if the function has noinline attribute.
|
||||
bool SILDeclRef::isNoinline() const {
|
||||
return hasDecl() ? getDecl()->getAttrs().hasAttribute<NoinlineAttr>() : false;
|
||||
if (!hasDecl())
|
||||
return false;
|
||||
if (auto InlineA = getDecl()->getAttrs().getAttribute<InlineAttr>())
|
||||
if (InlineA->getKind() == InlineKind::Never)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SILDeclRef::isForeignThunk() const {
|
||||
|
||||
Reference in New Issue
Block a user