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 | c0b07286cf9d303958d2d21c0548403086c87e36 (patch) | |
tree | f7620d339f3b00c699e65fd82972cfde71c93b13 /clang/lib/Frontend | |
parent | ac8dbf0fc70ca56fa6c7bda4e9b76323102ba65a (diff) | |
download | bcm5719-llvm-c0b07286cf9d303958d2d21c0548403086c87e36.tar.gz bcm5719-llvm-c0b07286cf9d303958d2d21c0548403086c87e36.zip |
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>.
llvm-svn: 140650
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r-- | clang/lib/Frontend/ASTConsumers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ASTConsumers.cpp b/clang/lib/Frontend/ASTConsumers.cpp index 70baf745451..15ab2f83c24 100644 --- a/clang/lib/Frontend/ASTConsumers.cpp +++ b/clang/lib/Frontend/ASTConsumers.cpp @@ -39,7 +39,7 @@ namespace { : Out(o? *o : llvm::outs()), Dump(Dump) { } virtual void HandleTranslationUnit(ASTContext &Context) { - PrintingPolicy Policy = Context.PrintingPolicy; + PrintingPolicy Policy = Context.getPrintingPolicy(); Policy.Dump = Dump; Context.getTranslationUnitDecl()->print(Out, Policy, /*Indentation=*/0, /*PrintInstantiation=*/true); |