summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-14 00:51:04 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-14 00:51:04 +0000
commit8911229187cb223dba70483678f90bb8e3896ed3 (patch)
treedae081425fea7f58b0a7b497e4f1cde1015eed21
parentc67974ccb1e6988d6c59084fe1c8974f536c4904 (diff)
downloadbcm5719-llvm-8911229187cb223dba70483678f90bb8e3896ed3.tar.gz
bcm5719-llvm-8911229187cb223dba70483678f90bb8e3896ed3.zip
Rename dump to dumpDeclContext, so that call RD->dump() won't dump the decl context by default.
llvm-svn: 91256
-rw-r--r--clang/include/clang/AST/DeclBase.h2
-rw-r--r--clang/lib/AST/DeclPrinter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/AST/DeclBase.h b/clang/include/clang/AST/DeclBase.h
index 17f379dace5..497f86347a8 100644
--- a/clang/include/clang/AST/DeclBase.h
+++ b/clang/include/clang/AST/DeclBase.h
@@ -1006,7 +1006,7 @@ public:
static bool classof(const Name##Decl *D) { return true; }
#include "clang/AST/DeclNodes.def"
- void dump() const;
+ void dumpDeclContext() const;
private:
void LoadLexicalDeclsFromExternalStorage() const;
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp
index ed16b33116d..32ac53d85be 100644
--- a/clang/lib/AST/DeclPrinter.cpp
+++ b/clang/lib/AST/DeclPrinter.cpp
@@ -148,7 +148,7 @@ void Decl::printGroup(Decl** Begin, unsigned NumDecls,
}
}
-void DeclContext::dump() const {
+void DeclContext::dumpDeclContext() const {
// Get the translation unit
const DeclContext *DC = this;
while (!DC->isTranslationUnit())
OpenPOWER on IntegriCloud