Replace std::function in PrintingPolicy with a callbacks object.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 16 Oct 2019 00:51:08 +0000 (17:51 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Tue, 29 Oct 2019 22:29:44 +0000 (15:29 -0700)
commitdbcb690fb78193e99452748c4af72eccb262e4e2
tree4672493e8bb64edd651192515ad209501b058456
parenta69bbe02a2352271e8b14542073f177e24c499c1
Replace std::function in PrintingPolicy with a callbacks object.

This makes PrintingPolicy significantly more lightweight and provides
groundwork for more printing customization hooks.
clang/include/clang/AST/PrettyPrinter.h
clang/lib/AST/TypePrinter.cpp
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h