aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorXiangling Liao <Xiangling.Liao@ibm.com>2020-09-30 10:35:00 -0400
committerXiangling Liao <Xiangling.Liao@ibm.com>2020-09-30 10:48:28 -0400
commit3a7487f903e2a6be29de39058eee2372e30798d5 (patch)
tree26000ad57bce61232e94b113d752e2ca226ae3ec /clang/lib/Frontend/CompilerInvocation.cpp
parent2ef73025afda6481625b74eb99cdbc2eb1cfef95 (diff)
downloadllvm-3a7487f903e2a6be29de39058eee2372e30798d5.zip
llvm-3a7487f903e2a6be29de39058eee2372e30798d5.tar.gz
llvm-3a7487f903e2a6be29de39058eee2372e30798d5.tar.bz2
[FE] Use preferred alignment instead of ABI alignment for complete object when applicable
On some targets, preferred alignment is larger than ABI alignment in some cases. For example, on AIX we have special power alignment rules which would cause that. Previously, to support those cases, we added a “PreferredAlignment” field in the `RecordLayout` to store the AIX special alignment values in “PreferredAlignment” as the community suggested. However, that patch alone is not enough. There are places in the Clang where `PreferredAlignment` should have been used instead of ABI-specified alignment. This patch is aimed at fixing those spots. Differential Revision: https://reviews.llvm.org/D86790
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions