[XCOFF][AIX] Handle llvm.used and llvm.compiler.used global array
authorjasonliu <jasonliu.development@gmail.com>
Mon, 27 Jul 2020 14:04:59 +0000 (14:04 +0000)
committerjasonliu <jasonliu.development@gmail.com>
Mon, 27 Jul 2020 15:28:32 +0000 (15:28 +0000)
commitc25f61cf6a61bc323af118d351a27603fdd0158d
tree42841d0f8995fb3a46cf274c8b19b79d818b607e
parentf5e1ec8c5804ab7bd36f9acd43124b2029fbabc4
[XCOFF][AIX] Handle llvm.used and llvm.compiler.used global array

For now, just return and do nothing when we see llvm.used and
llvm.compiler.used global array.
Hopefully, we could come up with a good solution later to prevent
linker from eliminating symbols in llvm.used array.

Reviewed By: DiggerLin, daltenty

Differential Revision: https://reviews.llvm.org/D84363
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/test/CodeGen/PowerPC/aix-xcoff-used.ll [new file with mode: 0644]