summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-01-02 23:02:01 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-01-02 23:02:01 +0000
commit9f6fec4419b3126ab39eaaab935e8995589af1fe (patch)
treee00e0ab0cb14605d2b4e6c3f905eceb88266f0fa /clang/lib/Sema
parente61b86c9cdf2c00e473f914ef68899d5ae975a20 (diff)
downloadbcm5719-llvm-9f6fec4419b3126ab39eaaab935e8995589af1fe.tar.gz
bcm5719-llvm-9f6fec4419b3126ab39eaaab935e8995589af1fe.zip
Removing some more unnecessary manual quotes from attribute diagnostics.
llvm-svn: 198371
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 8a9806586d9..083a66e2559 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -1369,8 +1369,8 @@ static void handleWeakRefAttr(Sema &S, Decl *D, const AttributeList &Attr) {
// we reject them
const DeclContext *Ctx = D->getDeclContext()->getRedeclContext();
if (!Ctx->isFileContext()) {
- S.Diag(Attr.getLoc(), diag::err_attribute_weakref_not_global_context) <<
- nd->getNameAsString();
+ S.Diag(Attr.getLoc(), diag::err_attribute_weakref_not_global_context)
+ << nd;
return;
}
@@ -4127,8 +4127,8 @@ void Sema::ProcessDeclAttributeList(Scope *S, Decl *D,
// static int a9 __attribute__((weakref));
// but that looks really pointless. We reject it.
if (D->hasAttr<WeakRefAttr>() && !D->hasAttr<AliasAttr>()) {
- Diag(AttrList->getLoc(), diag::err_attribute_weakref_without_alias) <<
- cast<NamedDecl>(D)->getNameAsString();
+ Diag(AttrList->getLoc(), diag::err_attribute_weakref_without_alias)
+ << cast<NamedDecl>(D);
D->dropAttr<WeakRefAttr>();
return;
}
OpenPOWER on IntegriCloud