diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-26 21:58:53 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-26 21:58:53 +0000 |
commit | 46f87dcad48b1eee897a3da0c8c1acb62b464880 (patch) | |
tree | 7ef322503ccfb5ef15d34434bbe055d3f9582508 /clang/lib/AST/DeclPrinter.cpp | |
parent | 37d8015dc1e09de96e32be45a70cb53b9fe118db (diff) | |
download | bcm5719-llvm-46f87dcad48b1eee897a3da0c8c1acb62b464880.tar.gz bcm5719-llvm-46f87dcad48b1eee897a3da0c8c1acb62b464880.zip |
Make Decl::dump const.
llvm-svn: 82878
Diffstat (limited to 'clang/lib/AST/DeclPrinter.cpp')
-rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index f448144d282..9d0d836cf62 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -77,14 +77,14 @@ namespace { }; } -void Decl::print(llvm::raw_ostream &Out, unsigned Indentation) { +void Decl::print(llvm::raw_ostream &Out, unsigned Indentation) const { print(Out, getASTContext().PrintingPolicy, Indentation); } void Decl::print(llvm::raw_ostream &Out, const PrintingPolicy &Policy, - unsigned Indentation) { + unsigned Indentation) const { DeclPrinter Printer(Out, getASTContext(), Policy, Indentation); - Printer.Visit(this); + Printer.Visit(const_cast<Decl*>(this)); } static QualType GetBaseType(QualType T) { @@ -149,7 +149,7 @@ void Decl::printGroup(Decl** Begin, unsigned NumDecls, } } -void Decl::dump() { +void Decl::dump() const { print(llvm::errs()); } |