diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-14 08:09:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-14 08:09:34 +0000 |
commit | 0db29ece81d360dcefbe912339c34abe5917f6a9 (patch) | |
tree | 610996b33105e9ec63ff6eac4d026910406a05ad /lib/Parse/AttributeList.cpp | |
parent | 129b6c1c5ff43df4cc7c5f93527e00c4f2279ba8 (diff) |
add parser and type checking support for attribute((objc_exception)).
We don't have "zero cost" exceptions for ObjC yet, so there is no codegen
support required.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/AttributeList.cpp')
-rw-r--r-- | lib/Parse/AttributeList.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Parse/AttributeList.cpp b/lib/Parse/AttributeList.cpp index 6ce55ea5c5..06cd67abe5 100644 --- a/lib/Parse/AttributeList.cpp +++ b/lib/Parse/AttributeList.cpp @@ -110,6 +110,9 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { if (!memcmp(Str, "address_space", 13)) return AT_address_space; if (!memcmp(Str, "always_inline", 13)) return AT_always_inline; break; + case 14: + if (!memcmp(Str, "objc_exception", 14)) return AT_objc_exception; + break; case 15: if (!memcmp(Str, "ext_vector_type", 15)) return AT_ext_vector_type; break; |