diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2010-12-01 03:15:31 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2010-12-01 03:15:31 +0000 |
commit | ced7671c18e115ac3c3f54abfaaafcc6d33edc4c (patch) | |
tree | 2779f2f96e9ee79c82819dd6ec8abf8eff16bc67 /lib/Sema/AttributeList.cpp | |
parent | 895fcca55a6d52a71639f2472a6623ab2dd9f628 (diff) |
Basic, Sema: add support for CUDA location attributes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/AttributeList.cpp')
-rw-r--r-- | lib/Sema/AttributeList.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Sema/AttributeList.cpp b/lib/Sema/AttributeList.cpp index 4faa67223c..409e2488bd 100644 --- a/lib/Sema/AttributeList.cpp +++ b/lib/Sema/AttributeList.cpp @@ -125,5 +125,10 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) { .Case("__fastcall", AT_fastcall) .Case("__thiscall", AT_thiscall) .Case("__pascal", AT_pascal) + .Case("constant", AT_constant) + .Case("device", AT_device) + .Case("global", AT_global) + .Case("host", AT_host) + .Case("shared", AT_shared) .Default(UnknownAttribute); } |