diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2014-05-20 17:12:51 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-05-20 17:12:51 +0000 |
commit | 7e9a34dfa561f6fa3e91848212f1a0cf15094799 (patch) | |
tree | 5ea7928f5e67865e5ab5f8d35ad06722b96a6486 /lib/Sema/SemaDeclAttr.cpp | |
parent | fa11365ab61a9934a68147ba6f7e9a5fdde526c0 (diff) |
Implement the flatten attribute.
This is a GNU attribute that causes calls within the attributed function
to be inlined where possible. It is implemented by giving such calls the
alwaysinline attribute.
Differential Revision: http://reviews.llvm.org/D3816
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index b7c1d5d15b..9775c58639 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -4147,6 +4147,9 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, case AttributeList::AT_OptimizeNone: handleOptimizeNoneAttr(S, D, Attr); break; + case AttributeList::AT_Flatten: + handleSimpleAttribute<FlattenAttr>(S, D, Attr); + break; case AttributeList::AT_Format: handleFormatAttr(S, D, Attr); break; |