From: Aaron Ballman Date: Fri, 6 Dec 2013 18:56:03 +0000 (+0000) Subject: Turning the __w64 attribute into an ignored attribute to match other Microsoft extens... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=328b3ffb155c94e8ab54b0f282d8db6a1f839deb;p=clang Turning the __w64 attribute into an ignored attribute to match other Microsoft extensions we do not currently support. Note that __w64 has been deprecated in MSVC since 2008. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196592 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td index 41e70f4302..ac6bbf63ef 100644 --- a/include/clang/Basic/Attr.td +++ b/include/clang/Basic/Attr.td @@ -1205,7 +1205,7 @@ def SelectAny : InheritableAttr { let LangOpts = [MicrosoftExt]; } -def Win64 : InheritableAttr { +def Win64 : IgnoredAttr { let Spellings = [Keyword<"__w64">]; let LangOpts = [MicrosoftExt]; } diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 5414453efc..f5a3654218 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -4125,8 +4125,6 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, handleSimpleAttribute(S, D, Attr); break; case AttributeList::AT_VirtualInheritance: handleSimpleAttribute(S, D, Attr); break; - case AttributeList::AT_Win64: - handleSimpleAttribute(S, D, Attr); break; case AttributeList::AT_ForceInline: handleSimpleAttribute(S, D, Attr); break; case AttributeList::AT_SelectAny: diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 6dfc235a14..514a0fa30d 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -4951,9 +4951,6 @@ static void processTypeAttrs(TypeProcessingState &state, QualType &type, attr.setUsedAsTypeAttr(); break; - case AttributeList::AT_Win64: - attr.setUsedAsTypeAttr(); - break; MS_TYPE_ATTRS_CASELIST: if (!handleMSPointerTypeQualifierAttr(state, attr, type)) attr.setUsedAsTypeAttr();