diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2014-05-19 22:14:34 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-05-19 22:14:34 +0000 |
commit | edea169440f3e509af537e44352a1fb12155dd82 (patch) | |
tree | d593f4ee3e22c4bcd53ecbd21a93f697faf9e956 /lib/Sema/SemaDeclAttr.cpp | |
parent | 6ea738122e9f57accf3906fd7c9805a6b9f86d26 (diff) |
Implement the no_split_stack attribute.
This is a GNU attribute that allows split stacks to be turned off on a
per-function basis.
Differential Revision: http://reviews.llvm.org/D3817
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209167 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 2e97a8aa9d..b7c1d5d15b 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -4180,6 +4180,9 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, case AttributeList::AT_NoCommon: handleSimpleAttribute<NoCommonAttr>(S, D, Attr); break; + case AttributeList::AT_NoSplitStack: + handleSimpleAttribute<NoSplitStackAttr>(S, D, Attr); + break; case AttributeList::AT_NonNull: if (ParmVarDecl *PVD = dyn_cast<ParmVarDecl>(D)) handleNonNullAttrParameter(S, PVD, Attr); |