diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-12-02 15:13:14 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-12-02 15:13:14 +0000 |
| commit | 9beb517307aa5617e7597af6d8b64eebf21d8e68 (patch) | |
| tree | 637be3cc461deb2b5d5789eae0e45b730ea22a83 /clang/lib/Sema | |
| parent | 21cb8d4dd5ba808e05500cf33bcf75c994906ccf (diff) | |
| download | bcm5719-llvm-9beb517307aa5617e7597af6d8b64eebf21d8e68.tar.gz bcm5719-llvm-9beb517307aa5617e7597af6d8b64eebf21d8e68.zip | |
Switching the ibaction attribute handler to the generalized handler. No functional change intended.
llvm-svn: 196107
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 9f34fa9498f..200772940d6 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -1068,11 +1068,6 @@ static void handlePackedAttr(Sema &S, Decl *D, const AttributeList &Attr) { S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); } -static void handleIBAction(Sema &S, Decl *D, const AttributeList &Attr) { - D->addAttr(::new (S.Context) IBActionAttr(Attr.getRange(), S.Context, - Attr.getAttributeSpellingListIndex())); -} - static bool checkIBOutletCommon(Sema &S, Decl *D, const AttributeList &Attr) { // The IBOutlet/IBOutletCollection attributes only apply to instance // variables or properties of Objective-C classes. The outlet must also @@ -4030,7 +4025,8 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, return; switch (Attr.getKind()) { - case AttributeList::AT_IBAction: handleIBAction(S, D, Attr); break; + case AttributeList::AT_IBAction: + handleSimpleAttribute<IBActionAttr>(S, D, Attr); break; case AttributeList::AT_IBOutlet: handleIBOutlet(S, D, Attr); break; case AttributeList::AT_IBOutletCollection: handleIBOutletCollection(S, D, Attr); break; |

