[PATCH] Teach llvm::format_hex() to support formatting without a prefix '0x'

Chandler Carruth chandlerc at google.com
Fri Jan 23 14:00:18 PST 2015


On Fri, Jan 23, 2015 at 1:58 PM, Rui Ueyama <ruiu at google.com> wrote:

> Why does format_hex prints out "0x" prefix in the first place? If it
> doesn't, like printf %x, we don't need an extra parameter or a separate
> function. It may be too late, though.


I would be fine to change all users to just write '0x' into the stream
first.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/bcf8eadb/attachment.html>


More information about the llvm-commits mailing list