summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-12-02 16:17:55 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-12-02 16:17:55 +0000
commit5010a76fe20b9db312a3ebc207e40fea7ef9dc37 (patch)
tree2506388d1d69b29a72c3c803c276a3f9853e38e8
parentfbd51bef13095e90391612eb9a8ec14ff2e9eb93 (diff)
downloadbcm5719-llvm-5010a76fe20b9db312a3ebc207e40fea7ef9dc37.tar.gz
bcm5719-llvm-5010a76fe20b9db312a3ebc207e40fea7ef9dc37.zip
The __w64 attribute handler was more generically named, but only applied to __w64 specifically. Renamed and removed some unused code. No functional change intended.
llvm-svn: 196116
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index d442afd9117..1ae62ef3af0 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -3944,15 +3944,12 @@ static void handleInheritanceAttr(Sema &S, Decl *D, const AttributeList &Attr) {
Attr.getAttributeSpellingListIndex()));
}
-static void handlePortabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) {
+static void handleWin64Attr(Sema &S, Decl *D, const AttributeList &Attr) {
if (!checkMicrosoftExt(S, Attr))
return;
- AttributeList::Kind Kind = Attr.getKind();
- if (Kind == AttributeList::AT_Win64)
- D->addAttr(
- ::new (S.Context) Win64Attr(Attr.getRange(), S.Context,
- Attr.getAttributeSpellingListIndex()));
+ D->addAttr(::new (S.Context) Win64Attr(Attr.getRange(), S.Context,
+ Attr.getAttributeSpellingListIndex()));
}
static void handleForceInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) {
@@ -4229,8 +4226,7 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D,
handleInheritanceAttr(S, D, Attr);
break;
case AttributeList::AT_Win64:
- handlePortabilityAttr(S, D, Attr);
- break;
+ handleWin64Attr(S, D, Attr); break;
case AttributeList::AT_ForceInline:
handleForceInlineAttr(S, D, Attr);
break;
OpenPOWER on IntegriCloud