{"push_id":1392651891,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"a20694002c0fc014b0e1770be1b1921d1e59a6a3","before":"6382ee0e42d414f6506f97e103892de07f1ad83f","commits":[{"sha":"a20694002c0fc014b0e1770be1b1921d1e59a6a3","author":{"name":"Greg Clayton","email":"b3a5a5be7537a1f3520ec42a1045144623906418@apple.com"},"message":"Added the ability to dump hex bytes easily into a raw_ostream.\n\nUnit tests were added to verify this functionality keeps working correctly.\n\nExample output for raw hex bytes:\nllvm::ArrayRef<uint8_t> Bytes = ...;\nllvm::outs() << format_hex_bytes(Bytes);\n554889e5 4881ec70 04000048 8d051002\n00004c8d 05fd0100 004c8b0d d0020000\n\nExample output for raw hex bytes with offsets:\nllvm::outs() << format_hex_bytes(Bytes, 0x100000d10);\n0x0000000100000d10: 554889e5 4881ec70 04000048 8d051002\n0x0000000100000d20: 00004c8d 05fd0100 004c8b0d d0020000\n\nExample output for raw hex bytes with ASCII with offsets:\nllvm::outs() << format_hex_bytes_with_ascii(Bytes, 0x100000d10);\n0x0000000100000d10: 554889e5 4881ec70 04000048 8d051002 |UH.?H.?p...H....|\n0x0000000100000d20: 00004c8d 05fd0100 004c8b0d d0020000 |..L..?...L..?...|\n\nThe default groups bytes into 4 byte groups, but this can be changed to 1 byte:\nllvm::outs() << format_hex_bytes(Bytes, 0x100000d10, 16 /*NumPerLine*/, 1 /*ByteGroupSize*/);\n0x0000000100000d10: 55 48 89 e5 48 81 ec 70 04 00 00 48 8d 05 10 02\n0x0000000100000d20: 00 00 4c 8d 05 fd 01 00 00 4c 8b 0d d0 02 00 00\n\nllvm::outs() << format_hex_bytes(Bytes, 0x100000d10, 16 /*NumPerLine*/, 2 /*ByteGroupSize*/);\n0x0000000100000d10: 5548 89e5 4881 ec70 0400 0048 8d05 1002\n0x0000000100000d20: 0000 4c8d 05fd 0100 004c 8b0d d002 0000\n\nllvm::outs() << format_hex_bytes(Bytes, 0x100000d10, 8 /*NumPerLine*/, 1 /*ByteGroupSize*/);\n0x0000000100000d10: 55 48 89 e5 48 81 ec 70\n0x0000000100000d18: 04 00 00 48 8d 05 10 02\n0x0000000100000d20: 00 00 4c 8d 05 fd 01 00\n0x0000000100000d28: 00 4c 8b 0d d0 02 00 00\n\nhttps://reviews.llvm.org/D26405\n\n\n\ngit-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286316 91177308-0d34-0410-b5e6-96231b3b80d8","distinct":true,"url":"https://api.github.com/repos/llvm-project/llvm/commits/a20694002c0fc014b0e1770be1b1921d1e59a6a3"}]}
{"actor":{"display_login":"chapuni"}}