aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/AttributeList.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-05-27 03:33:27 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-05-27 03:33:27 +0000
commit3c0eb160ca1361a82b9f15b3b40a2425adc14d0f (patch)
tree1ba325230d8ddcb4586cdcef43ea08c3e417f875 /lib/Parse/AttributeList.cpp
parentcbadaf6ced6d664015ee409f62ab1bc20ae0bf73 (diff)
Implementation of gcc mode attribute; this is significant because
it fixes PR2204. Not too much to say about the implementation; it works in a similar way to the vector size attribute. At some point, we need to modify the targets to provide information about the appropriate types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/AttributeList.cpp')
-rw-r--r--lib/Parse/AttributeList.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Parse/AttributeList.cpp b/lib/Parse/AttributeList.cpp
index 2d8de97f3c..c99722c54a 100644
--- a/lib/Parse/AttributeList.cpp
+++ b/lib/Parse/AttributeList.cpp
@@ -54,6 +54,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) {
case 4:
if (!memcmp(Str, "weak", 4)) return AT_weak;
if (!memcmp(Str, "pure", 4)) return AT_pure;
+ if (!memcmp(Str, "mode", 4)) return AT_mode;
break;
case 6:
if (!memcmp(Str, "packed", 6)) return AT_packed;