[LLVMdev] Outputting hex in DOUT's

Chris Lattner clattner at apple.com
Tue Aug 4 15:52:58 PDT 2009


On Aug 4, 2009, at 2:50 PM, David Greene wrote:

> On Tuesday 04 August 2009 10:46, Chris Lattner wrote:
>> On Aug 4, 2009, at 8:29 AM, Aaron Gray wrote:
>>> How do output hex in DOUT's ?
>>
>> Please don't use DOUT, please use:
>>
>> DEBUG(errs() << stuff);
>>
>> instead.
>
> I've got some more DOUT-involving patches in the queue.  Is this
> a general design choice that's been made?  If so I can change the
> patches to use errs() instead, but the choice should be documented
> and DOUT should be marked deprecated if indeed that's the case.

I'd prefer for it to be eliminated, but it is currently used widely.   
If your patches don't make it substantially worse, I won't have a  
problem with them.  Bonus points for removing DOUTs though :)

-Chris



More information about the llvm-dev mailing list