diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-27 22:38:19 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-27 22:38:19 +0000 |
commit | 30c42404202d2e2512e51efc6066bd614cfdb5a4 (patch) | |
tree | 5ac5699fb4d6d06231673b2e9a4887e4870684fb /lib/AST/DeclPrinter.cpp | |
parent | 3240fe3b715327c8fda6f5a3bc8a092b1fce82a7 (diff) |
When 'bool' is not a built-in type but is defined as a macro, print
'bool' rather than '_Bool' within types, to make things a bit more
readable. Fixes <rdar://problem/10063263>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclPrinter.cpp')
-rw-r--r-- | lib/AST/DeclPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index 8d8ec2f7d2..7c61bae9ad 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -90,7 +90,7 @@ namespace { void Decl::print(raw_ostream &Out, unsigned Indentation, bool PrintInstantiation) const { - print(Out, getASTContext().PrintingPolicy, Indentation, PrintInstantiation); + print(Out, getASTContext().getPrintingPolicy(), Indentation, PrintInstantiation); } void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy, @@ -168,7 +168,7 @@ void DeclContext::dumpDeclContext() const { DC = DC->getParent(); ASTContext &Ctx = cast<TranslationUnitDecl>(DC)->getASTContext(); - DeclPrinter Printer(llvm::errs(), Ctx, Ctx.PrintingPolicy, 0); + DeclPrinter Printer(llvm::errs(), Ctx, Ctx.getPrintingPolicy(), 0); Printer.VisitDeclContext(const_cast<DeclContext *>(this), /*Indent=*/false); } |