1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 22:12:57 +02:00
llvm-mirror/lib/CodeGen/AsmPrinter
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
..
AddressPool.cpp
AddressPool.h One more batch of self-containing headers. 2016-01-27 19:29:56 +00:00
ARMException.cpp [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
AsmPrinter.cpp CodeGen: Move the call to DwarfDebug::beginModule() out of the constructor. 2016-05-20 19:35:35 +00:00
AsmPrinterDwarf.cpp CodeGen: Do not require a MachineFunction just to create a DIEDwarfExpression. 2016-05-20 19:35:17 +00:00
AsmPrinterHandler.h Extract the method to begin and end a fragment in AsmPrinterHandler in their own method. NFC 2016-02-26 20:30:37 +00:00
AsmPrinterInlineAsm.cpp Enable the %s modifier in inline asm template string 2016-02-04 16:18:08 +00:00
ByteStreamer.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
CMakeLists.txt [codeview] Describe int local variables using .cv_def_range 2016-02-10 20:55:49 +00:00
CodeViewDebug.cpp [codeview] Improve readability of type record assembly 2016-05-31 18:45:36 +00:00
CodeViewDebug.h [codeview] Use comdats for debug info describing comdat functions 2016-05-25 23:16:12 +00:00
DbgValueHistoryCalculator.cpp Consider regmasks when computing register-based DBG_VALUE live ranges 2016-03-25 17:54:46 +00:00
DbgValueHistoryCalculator.h One more batch of self-containing headers. 2016-01-27 19:29:56 +00:00
DebugHandlerBase.cpp Sink DI metadata usage out of MachineInstr.h and MachineInstrBuilder.h 2016-04-14 18:29:59 +00:00
DebugHandlerBase.h Make header self-contained. NFC. 2016-02-18 18:02:48 +00:00
DebugLocEntry.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
DebugLocStream.cpp
DebugLocStream.h
DIE.cpp DwarfDebug: emit type units immediately. 2016-02-11 19:57:46 +00:00
DIEHash.cpp DwarfDebug: emit type units immediately. 2016-02-11 19:57:46 +00:00
DIEHash.h [AsmPrinter] Prune dead code. NFC. 2015-10-15 17:16:32 +00:00
DwarfAccelTable.cpp Fix some Clang-tidy modernize warnings, other minor fixes. 2015-11-04 22:32:32 +00:00
DwarfAccelTable.h
DwarfCFIException.cpp [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
DwarfCompileUnit.cpp DWARF: Omit DW_AT_APPLE attributes (except ObjC ones) when not targeting LLDB 2016-05-24 21:19:28 +00:00
DwarfCompileUnit.h Reverting 268054 & 268063 as they caused PR27579. 2016-04-30 01:44:07 +00:00
DwarfDebug.cpp DWARF: Omit DW_AT_APPLE attributes (except ObjC ones) when not targeting LLDB 2016-05-24 21:19:28 +00:00
DwarfDebug.h DWARF: Omit DW_AT_APPLE attributes (except ObjC ones) when not targeting LLDB 2016-05-24 21:19:28 +00:00
DwarfException.h Extract the method to begin and end a fragment in AsmPrinterHandler in their own method. NFC 2016-02-26 20:30:37 +00:00
DwarfExpression.cpp CodeGen: Do not require a MachineFunction just to create a DIEDwarfExpression. 2016-05-20 19:35:17 +00:00
DwarfExpression.h CodeGen: Do not require a MachineFunction just to create a DIEDwarfExpression. 2016-05-20 19:35:17 +00:00
DwarfFile.cpp DwarfDebug: emit type units immediately. 2016-02-11 19:57:46 +00:00
DwarfFile.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
DwarfStringPool.cpp
DwarfStringPool.h
DwarfUnit.cpp DWARF: Omit DW_AT_APPLE attributes (except ObjC ones) when not targeting LLDB 2016-05-24 21:19:28 +00:00
DwarfUnit.h Reverting 268054 & 268063 as they caused PR27579. 2016-04-30 01:44:07 +00:00
EHStreamer.cpp
EHStreamer.h Extract the method to begin and end a fragment in AsmPrinterHandler in their own method. NFC 2016-02-26 20:30:37 +00:00
ErlangGCPrinter.cpp
LLVMBuild.txt Reland "[CodeView] Use assembler directives for line tables" 2016-01-29 00:49:42 +00:00
OcamlGCPrinter.cpp
WinException.cpp [MC] Create unique .pdata sections for every .text section 2016-05-02 23:22:18 +00:00
WinException.h [WinEH] Move WinEHFuncInfo from MachineModuleInfo to MachineFunction 2015-11-17 21:10:25 +00:00