[LLVMdev] Outputting hex in DOUT's
Daniel Dunbar
daniel at zuster.org
Tue Aug 4 17:18:12 PDT 2009
On Tue, Aug 4, 2009 at 5:05 PM, Aaron
Gray<aaronngray.lists at googlemail.com> wrote:
> So I can say
>
> DEBUG( err().write_hex(address); err() << "\n"; );
>
> And can I say :-
>
> DEBUG( err().write_hex(address) << "\n"; );
>
> does it associate like that ?
Yes. You can also use format objects from llvm/Support/Format.h, as in:
--
DEBUG(errs() << format("0x%08x", address) << "\n");
--
- Daniel
More information about the llvm-dev
mailing list