This is the patch to provide dbgs(), an optionally circular-buffering
debug stream. The idea is to buffer debug output and print the last
N bytes of output, where N is specified via a command-line switch
-debug-buffer-size. This is useful when compiling very large codes
where one is only interested in the last few thousand lines (or so) of
debug output, just before some failure.
This patch is for discussion purposes. I will phase in the patch in
small chunks. In fact this patch doesn't even show all of the places
that need to change, just the places we changed in LLVM 2.5. This posting
gives the general idea of what things will look like when the conversion
process is complete.
Please review and let me know what needs to change before I start
merging stuff in.
Thanks!
-Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbgs.patch
Type: text/x-diff
Size: 62208 bytes
Desc: not available
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20091215/935ee957/attachment.patch>
On Tuesday 15 December 2009 15:21, David Greene wrote:> Please review and let me know what needs to change before I start > merging stuff in.I left in quite a few unnecessary headers from previous incarnations (streambuf, etc.). I will fix those. Please comment on the rest. -Dave
On Dec 15, 2009, at 2:53 PM, David Greene wrote:> On Tuesday 15 December 2009 15:21, David Greene wrote: > >> Please review and let me know what needs to change before I start >> merging stuff in. > > I left in quite a few unnecessary headers from previous incarnations > (streambuf, etc.). I will fix those. Please comment on the rest.Hi David, Please send complete and minimal patches to avoid wasting reviewer's time, -Chris