diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-10-30 21:02:37 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-10-30 21:02:37 +0000 |
commit | f7514454a747ac5a1029504b94410423ef6d0c54 (patch) | |
tree | 046fedcb9160c443f22dae92cf7f9731689821dd /llvm/lib/Support/MathExtras.cpp | |
parent | d249a3b3b21e2f07bd5b774069cfa51196c4b127 (diff) | |
download | bcm5719-llvm-f7514454a747ac5a1029504b94410423ef6d0c54.tar.gz bcm5719-llvm-f7514454a747ac5a1029504b94410423ef6d0c54.zip |
Refactor tree printing in AST dumping.
Instead of manually maintaining a flag indicating whether we're about to print
out the last child of the parent node (to determine whether we print "`" or
"|"), capture a callable to print that child and defer printing it until we
either see a next child or finish the parent.
No functionality change intended.
llvm-svn: 220930
Diffstat (limited to 'llvm/lib/Support/MathExtras.cpp')
0 files changed, 0 insertions, 0 deletions