[XCOFF] emit .rename for .lcomm when necessary
authorjasonliu <jasonliu.development@gmail.com>
Tue, 18 Aug 2020 14:18:53 +0000 (14:18 +0000)
committerjasonliu <jasonliu.development@gmail.com>
Tue, 18 Aug 2020 15:32:45 +0000 (15:32 +0000)
commitf48eced390dcda54766e1c510af10bbcbaebcd7e
treedb171f77859900df07512edcc9941166c3ca4e7a
parenta65a50540e3b5dd1938a1d14f31b912a311537fb
[XCOFF] emit .rename for .lcomm when necessary

Summary:

This is a follow up for D82481. For .lcomm directive, although it's
not necessary to have .rename emitted, it's still desirable to do
it so that we do not see internal 'Rename..' gets print out in
symbol table. And we could have consistent naming between TC entry
and .lcomm. And also have consistent naming between IR and final
object file.

Reviewed By: hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D86075
llvm/lib/MC/MCAsmStreamer.cpp
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/test/CodeGen/PowerPC/aix-xcoff-symbol-rename.ll