[LLVMdev] Old DOUT
dag at cray.com
Mon Dec 14 08:12:39 PST 2009
On Friday 11 December 2009 20:05, Chris Lattner wrote:
> > As I said, by default there is no change in behavior. dbgs() works
> > very similarly to the formatted_raw_ostream in that it uses errs()
> > underneath to do the actual output and only does the circular buffering
> > and delayed output if requested.
> It seems like there is better ways to handle this (i.e. split the input
> into smaller chunks) but I'm not opposed to the general idea.
That's a lot of manual work. It's really not easy to do when the code is
all in one function.
> > With dbgs() it will be:
> > DEBUG(dbgs() << foo());
> > The only functional difference is the ability to use circular buffering.
> Ok, I'm fine with that.
Ok, I'll have a patch shortly.
More information about the llvm-dev