From c0602e9d461913e58d7c263d260671418759554a Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Sun, 14 Sep 2014 15:13:45 +0200 Subject: [PATCH] Fix broken previous checkin... --- core/meta/src/TCling.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/meta/src/TCling.cxx b/core/meta/src/TCling.cxx index 4576967..16be679 100644 --- a/core/meta/src/TCling.cxx +++ b/core/meta/src/TCling.cxx @@ -195,17 +195,17 @@ clang::RecordDecl* TCling__DEBUG__DCtoRecordDecl(clang::DeclContext* DC) { return llvm::dyn_cast(DC); } void TCling__DEBUG__dump(clang::DeclContext* DC) { - return DC->dump(); + return DC->dumpDeclContext(); } void TCling__DEBUG__dump(clang::Decl* D) { return D->dump(); } void TCling__DEBUG__printName(clang::Decl* D) { - if (clang::NamedDecl* ND = dyn_cast(D)) { + if (clang::NamedDecl* ND = llvm::dyn_cast(D)) { std::string name; { - llvm::raw_string_ostream OS; - ND->getNameForDiagnostic(name, D->getASTContext()->getPrintingPolicy(), + llvm::raw_string_ostream OS(name); + ND->getNameForDiagnostic(OS, D->getASTContext().getPrintingPolicy(), true /*Qualified*/); } printf("%s\n", name.c_str()); -- 1.8.2