diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-11-19 22:18:24 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-11-19 22:18:24 +0000 |
commit | ecf81c09f5ac4de9910829dab947e5dc763bd6a8 (patch) | |
tree | 09b0dc1fb251c50cb1c1a6aaab61593f83df027e /clang/lib/Sema/SemaDeclAttr.cpp | |
parent | 4eb61120b5569e3ff2c580d536e1e31a1b9753a7 (diff) | |
download | bcm5719-llvm-ecf81c09f5ac4de9910829dab947e5dc763bd6a8.tar.gz bcm5719-llvm-ecf81c09f5ac4de9910829dab947e5dc763bd6a8.zip |
Switching some string literals to be generated by the AttributeList object itself.
llvm-svn: 195160
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 3e583862092..4d0c6771e98 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -3662,7 +3662,7 @@ static void handleConstantAttr(Sema &S, Decl *D, const AttributeList &Attr) { CUDAConstantAttr(Attr.getRange(), S.Context, Attr.getAttributeSpellingListIndex())); } else { - S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << "constant"; + S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); } } @@ -3685,7 +3685,7 @@ static void handleDeviceAttr(Sema &S, Decl *D, const AttributeList &Attr) { CUDADeviceAttr(Attr.getRange(), S.Context, Attr.getAttributeSpellingListIndex())); } else { - S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << "device"; + S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); } } @@ -3716,7 +3716,7 @@ static void handleGlobalAttr(Sema &S, Decl *D, const AttributeList &Attr) { CUDAGlobalAttr(Attr.getRange(), S.Context, Attr.getAttributeSpellingListIndex())); } else { - S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << "global"; + S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); } } @@ -3732,7 +3732,7 @@ static void handleHostAttr(Sema &S, Decl *D, const AttributeList &Attr) { CUDAHostAttr(Attr.getRange(), S.Context, Attr.getAttributeSpellingListIndex())); } else { - S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << "host"; + S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); } } @@ -3748,7 +3748,7 @@ static void handleSharedAttr(Sema &S, Decl *D, const AttributeList &Attr) { CUDASharedAttr(Attr.getRange(), S.Context, Attr.getAttributeSpellingListIndex())); } else { - S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << "shared"; + S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); } } |