7 using namespace llvm::support;
23 void ScopedPrinter::printBinaryImpl(StringRef Label, StringRef Str,
24 ArrayRef<uint8_t> Data,
bool Block) {
38 startLine() << Label <<
":";
41 OS <<
" (" <<
format_bytes(Data, None, Data.size(), 1, 0,
true) <<
")\n";
FormattedBytes format_bytes_with_ascii(ArrayRef< uint8_t > Bytes, Optional< uint64_t > FirstByteOffset=None, uint32_t NumPerLine=16, uint8_t ByteGroupSize=4, uint32_t IndentLevel=0, bool Upper=false)
FormattedBytes format_bytes(ArrayRef< uint8_t > Bytes, Optional< uint64_t > FirstByteOffset=None, uint32_t NumPerLine=16, uint8_t ByteGroupSize=4, uint32_t IndentLevel=0, bool Upper=false)
std::string & str()
Flushes the stream contents to the target string and returns the string's reference.
const std::string to_hexString(uint64_t Value, bool UpperCase=true)
FormattedNumber format_hex_no_prefix(uint64_t N, unsigned Width, bool Upper=false)
format_hex_no_prefix - Output N as a fixed width hexadecimal.
raw_ostream & operator<<(raw_ostream &OS, const APInt &I)
A raw_ostream that writes to an std::string.
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream...