Rename dump to dumpDeclContext, so that call RD->dump() won't dump the decl context by default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91256 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h
index 17f379d..497f863 100644
--- a/include/clang/AST/DeclBase.h
+++ b/include/clang/AST/DeclBase.h
@@ -1006,7 +1006,7 @@
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/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp
index ed16b33..32ac53d 100644
--- a/lib/AST/DeclPrinter.cpp
+++ b/lib/AST/DeclPrinter.cpp
@@ -148,7 +148,7 @@
}
}
-void DeclContext::dump() const {
+void DeclContext::dumpDeclContext() const {
// Get the translation unit
const DeclContext *DC = this;
while (!DC->isTranslationUnit())