.byte supports string, so if the whole byte list are printable,
we can actually print the string for readability and LIT tests maintainence.
.byte 'H,'e,'l,'l,'o,',,' ,'w,'o,'r,'l,'d
->
.byte "Hello, world"
Paths
| Differential D102814
[AIX] Print printable byte list as quoted string ClosedPublic Authored by jsji on May 19 2021, 2:25 PM.
Details
Summary .byte supports string, so if the whole byte list are printable, .byte 'H,'e,'l,'l,'o,',,' ,'w,'o,'r,'l,'d -> .byte "Hello, world"
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 19 2021, 2:25 PM
Comment Actions LGTM with minor comments; thanks!
This revision is now accepted and ready to land.May 20 2021, 2:11 PM This revision was landed with ongoing or failed builds.May 20 2021, 7:38 PM Closed by commit rGedf4d69d3888: [AIX] Print printable byte list as quoted string (authored by jsji). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 346794 clang/test/CodeGenCXX/debug-info-byval.cpp
llvm/include/llvm/MC/MCAsmInfo.h
llvm/lib/MC/MCAsmInfoXCOFF.cpp
llvm/lib/MC/MCAsmStreamer.cpp
llvm/test/CodeGen/PowerPC/aix-emit-tracebacktable-clobber-register.ll
llvm/test/CodeGen/PowerPC/aix-emit-tracebacktable.ll
llvm/test/CodeGen/PowerPC/aix-exception.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-data.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
llvm/test/DebugInfo/XCOFF/empty.ll
llvm/test/DebugInfo/XCOFF/explicit-section.ll
llvm/test/DebugInfo/XCOFF/function-sections.ll
|
See suggested edit. Emphasizing the difference from .ascii by starting with its associated comment is nice. Need to indicate that this is the zero-terminated case though.