MCPcopy Create free account
hub / github.com/ablab/spades / format_ptr

Function format_ptr

ext/src/llvm/Signals.cpp:97–101  ·  view source on GitHub ↗

Format a pointer value as hexadecimal. Zero pad it out so its always the same width.

Source from the content-addressed store, hash-verified

95/// Format a pointer value as hexadecimal. Zero pad it out so its always the
96/// same width.
97static 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.
104LLVM_ATTRIBUTE_USED

Callers 1

Calls 1

format_hexFunction · 0.85

Tested by

no test coverage detected