Ted Kremenek cf886188fb add option for literal formatting to APInt::toString()
toString() now takes an optional bool argument that,
depending on the radix, adds the appropriate prefix
to the integer's string representation that makes it into a
meaningful C literal, e.g.:

hexademical: '-f' becomes '-0xf'
octal: '77' becomes '077'
binary: '110' becomes '0b110'

Patch by nobled@dreamwidth.org!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133032 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-15 00:51:55 +00:00
..
2011-05-20 09:20:25 +00:00
2011-05-31 16:30:33 +00:00
2011-06-01 23:32:40 +00:00
2011-04-06 20:54:07 +00:00
2011-04-28 09:12:47 +00:00
2011-03-21 16:38:22 +00:00
2011-03-08 16:59:03 +00:00