summaryrefslogtreecommitdiffstats
path: root/clang/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
commit3e113409cb69ad9bc10224c333e47dc8395caef9 (patch)
tree0e50bae64a6b513c6eae5f814f7a2d3bae56cc26 /clang/lib/Parse/AttributeList.cpp
parent42ed07e10e19c979824045d55eac6340155eb16d (diff)
downloadbcm5719-llvm-3e113409cb69ad9bc10224c333e47dc8395caef9.tar.gz
bcm5719-llvm-3e113409cb69ad9bc10224c333e47dc8395caef9.zip
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. llvm-svn: 51577
Diffstat (limited to 'clang/lib/Parse/AttributeList.cpp')
-rw-r--r--clang/lib/Parse/AttributeList.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Parse/AttributeList.cpp b/clang/lib/Parse/AttributeList.cpp
index 2d8de97f3c0..c99722c54a5 100644
--- a/clang/lib/Parse/AttributeList.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud