From f3d3faeca60a7fab63ee03bf2b04d65d8640374e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 24 Nov 2008 05:29:24 +0000 Subject: Rename NamedDecl::getName() to getNameAsString(). Replace a bunch of uses of getName() with uses of getDeclName(). This upgrades a bunch of diags to take DeclNames instead of std::strings. This also tweaks a couple of diagnostics to be cleaner and changes CheckInitializerTypes/PerformInitializationByConstructor to pass around DeclarationNames instead of std::strings. llvm-svn: 59947 --- clang/lib/Analysis/CheckDeadStores.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Analysis/CheckDeadStores.cpp') diff --git a/clang/lib/Analysis/CheckDeadStores.cpp b/clang/lib/Analysis/CheckDeadStores.cpp index 2afc7e0235f..51943d50166 100644 --- a/clang/lib/Analysis/CheckDeadStores.cpp +++ b/clang/lib/Analysis/CheckDeadStores.cpp @@ -41,7 +41,7 @@ public: void Report(VarDecl* V, DeadStoreKind dsk, SourceLocation L, SourceRange R) { - std::string name(V->getName()); + std::string name = V->getNameAsString(); const char* BugType = 0; std::string msg; -- cgit v1.2.3