diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-12-19 22:12:51 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-12-19 22:12:51 +0000 |
commit | 37c5f5da32c9bc0cee5b939a666d14f1b6c05268 (patch) | |
tree | e46a0f27d43f109982c7d1527f5fc5391ae7e169 /clang/lib/Sema/SemaDeclAttr.cpp | |
parent | 592d3ac226360d2b64c7e9bfa7de07e93c95dfd4 (diff) | |
download | bcm5719-llvm-37c5f5da32c9bc0cee5b939a666d14f1b6c05268.tar.gz bcm5719-llvm-37c5f5da32c9bc0cee5b939a666d14f1b6c05268.zip |
After discussing with John McCall, removing the ns_bridged attribute as it is unused.
llvm-svn: 197729
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index a6240368bf8..73d67eb6fff 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -3649,31 +3649,6 @@ static void handleCFUnknownTransferAttr(Sema &S, Decl *D, Attr.getAttributeSpellingListIndex())); } -static void handleNSBridgedAttr(Sema &S, Scope *Sc, Decl *D, - const AttributeList &Attr) { - IdentifierLoc *Parm = Attr.isArgIdent(0) ? Attr.getArgAsIdent(0) : 0; - - // In Objective-C, verify that the type names an Objective-C type. - // We don't want to check this outside of ObjC because people sometimes - // do crazy C declarations of Objective-C types. - if (Parm && S.getLangOpts().ObjC1) { - // Check for an existing type with this name. - LookupResult R(S, DeclarationName(Parm->Ident), Parm->Loc, - Sema::LookupOrdinaryName); - if (S.LookupName(R, Sc)) { - NamedDecl *Target = R.getFoundDecl(); - if (Target && !isa<ObjCInterfaceDecl>(Target)) { - S.Diag(D->getLocStart(), diag::err_ns_bridged_not_interface); - S.Diag(Target->getLocStart(), diag::note_declared_at); - } - } - } - - D->addAttr(::new (S.Context) - NSBridgedAttr(Attr.getRange(), S.Context, Parm ? Parm->Ident : 0, - Attr.getAttributeSpellingListIndex())); -} - static void handleObjCBridgeAttr(Sema &S, Scope *Sc, Decl *D, const AttributeList &Attr) { IdentifierLoc * Parm = Attr.isArgIdent(0) ? Attr.getArgAsIdent(0) : 0; @@ -3970,9 +3945,6 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, case AttributeList::AT_ObjCRequiresSuper: handleObjCRequiresSuperAttr(S, D, Attr); break; - case AttributeList::AT_NSBridged: - handleNSBridgedAttr(S, scope, D, Attr); break; - case AttributeList::AT_ObjCBridge: handleObjCBridgeAttr(S, scope, D, Attr); break; |