summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/StreamableMemoryObject.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-10-30 21:02:37 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-10-30 21:02:37 +0000
commitf7514454a747ac5a1029504b94410423ef6d0c54 (patch)
tree046fedcb9160c443f22dae92cf7f9731689821dd /llvm/lib/Support/StreamableMemoryObject.cpp
parentd249a3b3b21e2f07bd5b774069cfa51196c4b127 (diff)
downloadbcm5719-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/StreamableMemoryObject.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud