summaryrefslogtreecommitdiff
path: root/lib/AST
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2019-09-19 15:10:51 +0000
committerAaron Ballman <aaron@aaronballman.com>2019-09-19 15:10:51 +0000
commit0ec02e88b21bbc46a5c9c6e0be5e00315cf0a07b (patch)
tree31550f235ffa4480ba447122afa39fc8cc8220ee /lib/AST
parentfa15c89fc549e6057f1d03c0d903eb6486c7a4d1 (diff)
downloadclang-0ec02e88b21bbc46a5c9c6e0be5e00315cf0a07b.tar.gz
Revert r372325 - Reverting r372323 because it broke color tests on Linux.
This corrects the testing issues. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372334 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST')
-rw-r--r--lib/AST/TextNodeDumper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AST/TextNodeDumper.cpp b/lib/AST/TextNodeDumper.cpp
index df3d149f29..546a62cda2 100644
--- a/lib/AST/TextNodeDumper.cpp
+++ b/lib/AST/TextNodeDumper.cpp
@@ -223,7 +223,6 @@ void TextNodeDumper::Visit(const Decl *D) {
return;
}
- Context = &D->getASTContext();
{
ColorScope Color(OS, ShowColors, DeclKindNameColor);
OS << D->getDeclKindName() << "Decl";
@@ -688,7 +687,7 @@ void TextNodeDumper::VisitConstantExpr(const ConstantExpr *Node) {
if (Node->getResultAPValueKind() != APValue::None) {
ColorScope Color(OS, ShowColors, ValueColor);
OS << " ";
- Node->getAPValueResult().printPretty(OS, *Context, Node->getType());
+ Node->getAPValueResult().dump(OS);
}
}