1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/lib/DebugInfo/CodeView
Reid Kleckner 05a06ad643 [codeview] Improve readability of type record assembly
Adds the method MCStreamer::EmitBinaryData, which is usually an alias
for EmitBytes. In the MCAsmStreamer case, it is overridden to emit hex
dump output like this:
        .byte   0x0e, 0x00, 0x08, 0x10
        .byte   0x03, 0x00, 0x00, 0x00
        .byte   0x00, 0x00, 0x00, 0x00
        .byte   0x00, 0x10, 0x00, 0x00

Also, when verbose asm comments are enabled, this patch prints the dump
output for each comment before its record, like this:
        # ArgList (0x1000) {
        #   TypeLeafKind: LF_ARGLIST (0x1201)
        #   NumArgs: 0
        #   Arguments [
        #   ]
        # }
        .byte   0x06, 0x00, 0x01, 0x12
        .byte   0x00, 0x00, 0x00, 0x00

This should make debugging easier and testing more convenient.

Reviewers: aaboud

Subscribers: majnemer, zturner, amccarth, aaboud, llvm-commits

Differential Revision: http://reviews.llvm.org/D20711

llvm-svn: 271313
2016-05-31 18:45:36 +00:00
..
ByteStream.cpp [pdb] Finish conversion to zero copy pdb access. 2016-05-28 05:21:57 +00:00
CMakeLists.txt [codeview] Move StreamInterface and StreamReader to libcodeview. 2016-05-25 20:37:03 +00:00
CodeViewError.cpp [codeview] Move StreamInterface and StreamReader to libcodeview. 2016-05-25 20:37:03 +00:00
FieldListRecordBuilder.cpp [codeview] Add type stream merging prototype 2016-05-14 00:02:53 +00:00
Line.cpp
ListRecordBuilder.cpp
LLVMBuild.txt
MemoryTypeTableBuilder.cpp [codeview] Improve readability of type record assembly 2016-05-31 18:45:36 +00:00
MethodListRecordBuilder.cpp [codeview] Align class and print names of types 2016-05-13 19:37:07 +00:00
RecordSerialization.cpp Make sure data is available before dereferencing it 2016-05-27 18:50:02 +00:00
StreamReader.cpp [pdb] Finish conversion to zero copy pdb access. 2016-05-28 05:21:57 +00:00
SymbolDumper.cpp [SymbolDumper] Validate the string table offset before using it 2016-05-28 20:04:46 +00:00
TypeDumper.cpp [codeview] Add a CVTypeDumper::dump(ArrayRef<uint8_t>) overload 2016-05-31 18:15:23 +00:00
TypeRecord.cpp [codeview] Add support for new types and symbols. 2016-05-25 00:12:48 +00:00
TypeRecordBuilder.cpp [codeview] Add type stream merging prototype 2016-05-14 00:02:53 +00:00
TypeStreamMerger.cpp [pdb] Finish conversion to zero copy pdb access. 2016-05-28 05:21:57 +00:00
TypeTableBuilder.cpp [codeview] Add type stream merging prototype 2016-05-14 00:02:53 +00:00