[PowerPC] Force entry alignment in .got2
authorHal Finkel <hfinkel@anl.gov>
Tue, 30 Aug 2016 01:43:38 +0000 (01:43 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 30 Aug 2016 01:43:38 +0000 (01:43 +0000)
commit18d0e3f44c5021e9f2236e062e5c10987a1b9060
treeb50f494c60f03b87575c321ec28e96c00e6d950a
parent6d3c9132e308aedc7917db1ed0e16998a8e06c0a
[PowerPC] Force entry alignment in .got2

Implement Bill's suggested fix for 32-bit targets for PR22711 (for the
alignment of each entry). As pointed out in the bug report, we could just force
the section alignment, since we only add pointer-sized things currently, but
this fix is somewhat more future-proof.

llvm-svn: 280049
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll