[AIX] asm output: use character literals in byte lists for strings
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 30 Sep 2020 01:11:16 +0000 (21:11 -0400)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 30 Sep 2020 01:14:41 +0000 (21:14 -0400)
commit0a146a9d0bdd54411f0b0712e27481a4c280ae03
tree77778259423396f912afa7c2c087e9d4435791e3
parentc6b18cf9672bca4f61bb3ef401173742068e46ea
[AIX] asm output: use character literals in byte lists for strings

This patch improves the assembly output produced for string literals by
using character literals in byte lists. This provides the benefits of
having printable characters appear as such in the assembly output and of
having strings kept as logical units on the same line.

Reviewed By: daltenty

Differential Revision: https://reviews.llvm.org/D80953
llvm/include/llvm/MC/MCAsmInfo.h
llvm/lib/MC/MCAsmInfoXCOFF.cpp
llvm/lib/MC/MCAsmStreamer.cpp
llvm/test/CodeGen/PowerPC/aix-bytestring.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/aix-xcoff-data.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-mergeable-str.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll