[PowerPC][AIX] Support toc-data attribute for read-only globals.
authorYousuf Ali <yoali@ibm.com>
Thu, 27 Jan 2022 14:57:04 +0000 (09:57 -0500)
committerSean Fertile <sd.fertile@gmail.com>
Thu, 27 Jan 2022 15:47:22 +0000 (10:47 -0500)
commitdad2b6e797df82c9ea5377394e09aacf6d824560
tree22b8801f79a91818559a0fbfd60574b2ad14433f
parentaa88b653927814052cdcb0ca22de52b043034568
[PowerPC][AIX] Support toc-data attribute for read-only globals.

The patch handles the addition of constant global variables to the table
of contents.

Differential Revision: https://reviews.llvm.org/D116181
llvm/lib/MC/MCSectionXCOFF.cpp
llvm/test/CodeGen/PowerPC/toc-data-const.ll [new file with mode: 0644]