diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-05-21 13:48:39 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-05-21 13:48:39 +0000 |
commit | 52195b74d01520b6bce0f8c08234bf6eb8cfd496 (patch) | |
tree | 162deca74e4b9d1cc878b07f2be194b3df0d9145 /lib/Sema | |
parent | 5f11de60f2a95d7a1369797c731a1039c547d37a (diff) |
Reverting r182337, which merged r182266, __declspec(selectany)
Was "Implement __declspec(selectany) under -fms-extensions ..."
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_33@182381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 9 | ||||
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 13 |
2 files changed, 0 insertions, 22 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 03e9afc002..e0e8bd646b 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -4638,15 +4638,6 @@ static void checkAttributesAfterMerging(Sema &S, NamedDecl &ND) { ND.dropAttr<WeakRefAttr>(); } } - - // 'selectany' only applies to externally visible varable declarations. - // It does not apply to functions. - if (SelectAnyAttr *Attr = ND.getAttr<SelectAnyAttr>()) { - if (isa<FunctionDecl>(ND) || !ND.isExternallyVisible()) { - S.Diag(Attr->getLocation(), diag::err_attribute_selectany_non_extern_data); - ND.dropAttr<SelectAnyAttr>(); - } - } } /// Given that we are within the definition of the given function, diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index ddcbafc30a..7b3345a332 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -4683,16 +4683,6 @@ static void handleForceInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) { S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); } -static void handleSelectAnyAttr(Sema &S, Decl *D, const AttributeList &Attr) { - if (!checkMicrosoftExt(S, Attr)) - return; - // Check linkage after possibly merging declaratinos. See - // checkAttributesAfterMerging(). - D->addAttr(::new (S.Context) - SelectAnyAttr(Attr.getRange(), S.Context, - Attr.getAttributeSpellingListIndex())); -} - //===----------------------------------------------------------------------===// // Top Level Sema Entry Points //===----------------------------------------------------------------------===// @@ -4919,9 +4909,6 @@ static void ProcessInheritableDeclAttr(Sema &S, Scope *scope, Decl *D, case AttributeList::AT_ForceInline: handleForceInlineAttr(S, D, Attr); break; - case AttributeList::AT_SelectAny: - handleSelectAnyAttr(S, D, Attr); - break; // Thread safety attributes: case AttributeList::AT_GuardedVar: |