[ThinLTO/WPD] Enable -wholeprogramdevirt-skip in ThinLTO backends
authorTeresa Johnson <tejohnson@google.com>
Thu, 19 Nov 2020 19:10:47 +0000 (11:10 -0800)
committerTeresa Johnson <tejohnson@google.com>
Tue, 24 Nov 2020 17:35:07 +0000 (09:35 -0800)
commit6e4c1cf2938842ceefc2712f0007843369dd16ca
treeb3ed9ab3a91d97f01e3ebb7d4e9c9e4db33d0a8d
parent1f5c4a0d04ac0384218bf56e78e3c1d9c3c2f53f
[ThinLTO/WPD] Enable -wholeprogramdevirt-skip in ThinLTO backends

Previously this option could be used to skip devirtualizations of the
given functions in regular LTO and in the ThinLTO indexing step. This
change allows them to be skipped in the backend as well, which is useful
when debugging WPD in a distributed ThinLTO backend.

Differential Revision: https://reviews.llvm.org/D91812
clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp