diff options
author | Steve Naroff <snaroff@apple.com> | 2008-09-18 16:44:58 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-09-18 16:44:58 +0000 |
commit | 3405a73ab8e551234ba803394d70e55dd57cf00a (patch) | |
tree | a3a77fe2e7eb70d20db431932c9ee1c857ba6d22 /clang/lib/Parse/AttributeList.cpp | |
parent | 1fd58f738b9e8c0db6eeb729af931d0619c4a900 (diff) | |
download | bcm5719-llvm-3405a73ab8e551234ba803394d70e55dd57cf00a.tar.gz bcm5719-llvm-3405a73ab8e551234ba803394d70e55dd57cf00a.zip |
Finish pushing blocks attribute through the clang attribute machinery.
Also added a couple simple tests from the "gcc.apple" test suite.
llvm-svn: 56309
Diffstat (limited to 'clang/lib/Parse/AttributeList.cpp')
-rw-r--r-- | clang/lib/Parse/AttributeList.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Parse/AttributeList.cpp b/clang/lib/Parse/AttributeList.cpp index 00da27cf0e8..b39dbe8c019 100644 --- a/clang/lib/Parse/AttributeList.cpp +++ b/clang/lib/Parse/AttributeList.cpp @@ -65,6 +65,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { if (!memcmp(Str, "malloc", 6)) return AT_malloc; if (!memcmp(Str, "format", 6)) return AT_format; if (!memcmp(Str, "unused", 6)) return AT_unused; + if (!memcmp(Str, "blocks", 6)) return AT_blocks; break; case 7: if (!memcmp(Str, "aligned", 7)) return AT_aligned; |