aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-01-07 19:58:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-01-07 19:58:54 +0000
commit8e721b714a92de803000c65fb8a57a1d8a810322 (patch)
treec58d0f3e54a8cbffd09c992b1a21d1433488f728 /lib/Sema/SemaDeclAttr.cpp
parent32b94bedc6a789e4091626e7433e73555cf9df00 (diff)
Add support for attribute((mode(unwind_word))).
Patch by Nick Lewycky. Fixes pr8703. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--lib/Sema/SemaDeclAttr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index aabf061c32..accea53bb8 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/lib/Sema/SemaDeclAttr.cpp
@@ -3270,6 +3270,10 @@ static void handleModeAttr(Sema &S, Decl *D, const AttributeList &Attr) {
if (Str == "pointer")
DestWidth = S.Context.getTargetInfo().getPointerWidth(0);
break;
+ case 11:
+ if (Str == "unwind_word")
+ DestWidth = S.Context.Target.getUnwindWordWidth();
+ break;
}
QualType OldTy;