diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-20 23:28:32 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-20 23:28:32 +0000 |
| commit | c812d5279089258c63382b6283770e1589dd56f3 (patch) | |
| tree | 439d838eb33c1d7e89025b66bbefd98905768941 | |
| parent | c910b6d075a0c20619aeda569a1f8cc306758ef3 (diff) | |
| download | bcm5719-llvm-c812d5279089258c63382b6283770e1589dd56f3.tar.gz bcm5719-llvm-c812d5279089258c63382b6283770e1589dd56f3.zip | |
CUDA: the device and host attributes must be inheritable, in order
to deal with NVIDIA's headers. We'll need to think of another way
to handle multiple host/device definitions within the same TU.
llvm-svn: 157171
| -rw-r--r-- | clang/include/clang/Basic/Attr.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/Attr.td b/clang/include/clang/Basic/Attr.td index 7d05b72a74a..f4370113fd0 100644 --- a/clang/include/clang/Basic/Attr.td +++ b/clang/include/clang/Basic/Attr.td @@ -267,7 +267,7 @@ def CUDAConstant : InheritableAttr { let Spellings = ["constant"]; } -def CUDADevice : Attr { +def CUDADevice : InheritableAttr { let Spellings = ["device"]; } @@ -275,7 +275,7 @@ def CUDAGlobal : InheritableAttr { let Spellings = ["global"]; } -def CUDAHost : Attr { +def CUDAHost : InheritableAttr { let Spellings = ["host"]; } |

