OSDN Git Service

[AIX] Emit AvailableExternally Linkage on AIX
authorXiangling Liao <Xiangling.Liao@ibm.com>
Fri, 29 May 2020 15:41:10 +0000 (11:41 -0400)
committerXiangling Liao <Xiangling.Liao@ibm.com>
Fri, 29 May 2020 17:12:59 +0000 (13:12 -0400)
commit26604d06b6fe10bb047a3620cf306be8648dcc20
tree28f0948897aa5699c034683d0cb573c5f1ddf5b2
parentb82a95f8bc91976a9ba663f8fa2edf15708b5c0f
[AIX] Emit AvailableExternally Linkage on AIX

Since on AIX, our strategy is to not use -u to suppress any undefined
symbols, we need to emit .extern for the symbols with AvailableExternally
linkage.

Differential Revision: https://reviews.llvm.org/D80642
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/lib/Target/TargetLoweringObjectFile.cpp
llvm/test/CodeGen/PowerPC/aix-available-externally-linkage.ll [new file with mode: 0644]