Skip to content

Commit a02510e

Browse files
Have the mregnames option also add the percent char as that is what GCC does as well.
1 parent 7c59f55 commit a02510e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,8 @@ void PPCInstPrinter::printTLSCall(const MCInst *MI, unsigned OpNo,
597597
/// showRegistersWithPercentPrefix - Check if this register name should be
598598
/// printed with a percentage symbol as prefix.
599599
bool PPCInstPrinter::showRegistersWithPercentPrefix(const char *RegName) const {
600-
if (!FullRegNamesWithPercent || TT.getOS() == Triple::AIX)
600+
if ((!FullRegNamesWithPercent && !MAI.useFullRegisterNames()) ||
601+
TT.getOS() == Triple::AIX)
601602
return false;
602603

603604
switch (RegName[0]) {

0 commit comments

Comments
 (0)