diff options
author | Quentin Colombet <qcolombet@apple.com> | 2012-10-29 18:28:57 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2012-10-29 18:28:57 +0000 |
commit | 8e68ef0e4c3892b80d9fec77b5d477cd54e90db9 (patch) | |
tree | 8e9c54cd16b9095719c2ce77bdd42b1e32a9687f /lib/Sema | |
parent | 9568f0c13a84695c5cc064e7c32412f84604cb1e (diff) |
Revert commit r166946
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 992cafce74..df4757e4d2 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1523,20 +1523,6 @@ static void handleAliasAttr(Sema &S, Decl *D, const AttributeList &Attr) { Str->getString())); } -static void handleForceSizeOptAttr(Sema &S, Decl *D, const AttributeList &Attr) { - // Check the attribute arguments. - if (!checkAttributeNumArgs(S, Attr, 0)) - return; - - if (!isa<FunctionDecl>(D)) { - S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) - << Attr.getName() << ExpectedFunction; - return; - } - - D->addAttr(::new (S.Context) ForceSizeOptAttr(Attr.getRange(), S.Context)); -} - static void handleColdAttr(Sema &S, Decl *D, const AttributeList &Attr) { // Check the attribute arguments. if (!checkAttributeNumArgs(S, Attr, 0)) @@ -4299,9 +4285,6 @@ static void ProcessInheritableDeclAttr(Sema &S, Scope *scope, Decl *D, case AttributeList::AT_ExtVectorType: handleExtVectorTypeAttr(S, scope, D, Attr); break; - case AttributeList::AT_ForceSizeOpt: - handleForceSizeOptAttr(S, D, Attr); - break; case AttributeList::AT_Format: handleFormatAttr (S, D, Attr); break; case AttributeList::AT_FormatArg: handleFormatArgAttr (S, D, Attr); break; case AttributeList::AT_CUDAGlobal: handleGlobalAttr (S, D, Attr); break; |