Format a pointer value as hexadecimal. Zero pad it out so its always the same width.
| 95 | /// Format a pointer value as hexadecimal. Zero pad it out so its always the |
| 96 | /// same width. |
| 97 | static FormattedNumber format_ptr(void *PC) { |
| 98 | // Each byte is two hex digits plus 2 for the 0x prefix. |
| 99 | unsigned PtrWidth = 2 + 2 * sizeof(void *); |
| 100 | return format_hex((uint64_t)PC, PtrWidth); |
| 101 | } |
| 102 | |
| 103 | /// Helper that launches llvm-symbolizer and symbolizes a backtrace. |
| 104 | LLVM_ATTRIBUTE_USED |
no test coverage detected