summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CheckDeadStores.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-24 05:29:24 +0000
committerChris Lattner <sabre@nondot.org>2008-11-24 05:29:24 +0000
commitf3d3faeca60a7fab63ee03bf2b04d65d8640374e (patch)
tree7288d8712306cc3bace620f54a12e161892f65c4 /clang/lib/Analysis/CheckDeadStores.cpp
parenta7c5eb72a0c7f8dd0fbc6c0d1abb3bd4b439e312 (diff)
downloadbcm5719-llvm-f3d3faeca60a7fab63ee03bf2b04d65d8640374e.tar.gz
bcm5719-llvm-f3d3faeca60a7fab63ee03bf2b04d65d8640374e.zip
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
Diffstat (limited to 'clang/lib/Analysis/CheckDeadStores.cpp')
-rw-r--r--clang/lib/Analysis/CheckDeadStores.cpp2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud