[AIX][XCOFF] error on emit symbol visibility for XCOFF object file
authorDavid Tenty <daltenty@ibm.com>
Fri, 22 Apr 2022 18:37:17 +0000 (14:37 -0400)
committerDavid Tenty <daltenty@ibm.com>
Tue, 26 Apr 2022 23:22:44 +0000 (19:22 -0400)
commitf6d209b3ec4c923f20388e3380099b2b0707f786
treed275608a0a9340b3500d440316d49cf7be16bded
parentffed0cfcdbee1b692fa19f9d97302cdf4423e5ee
[AIX][XCOFF] error on emit symbol visibility for XCOFF object file

This is a follow on to the revert of D84265 to add an error if we'd need
to write a non-zero visibility type in the xcoff object file. We can't
currently do that because we lack the auxilary header to interpret the
bits in XCOFF32. This is important because visibility is being enabled
in the assembly writing path, and without this error the visibility
could be silently ignored.

Differential Revision: https://reviews.llvm.org/D124392
llvm/include/llvm/MC/MCSectionXCOFF.h
llvm/lib/MC/XCOFFObjectWriter.cpp
llvm/test/CodeGen/PowerPC/aix-xcoff-visibility.ll