[ThinLTO] Enable index-only WPD from clang
authorTeresa Johnson <tejohnson@google.com>
Tue, 1 Oct 2019 18:08:29 +0000 (18:08 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 1 Oct 2019 18:08:29 +0000 (18:08 +0000)
commitdca5b94e798cfb99102116ff2e7ea4f9d184722b
tree3e6d70080c2d8efd6ef7376d267f27045c0aa6dc
parente0fa2689de53a8c711974bfa80d4aadd913e6984
[ThinLTO] Enable index-only WPD from clang

Summary:
To trigger the index-only Whole Program Devirt support added to LLVM, we
need to be able to specify -fno-split-lto-unit in conjunction with
-fwhole-program-vtables. Keep the default for -fwhole-program-vtables as
-fsplit-lto-unit, but don't error on that option combination.

Reviewers: pcc

Subscribers: mehdi_amini, inglorion, steven_wu, dexonsmith, arphaman, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D68029

llvm-svn: 373370
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/split-lto-unit.c