[PATCH] D69173: [clang][ThinLTO][Legacy] Don't add -fsplit-lto-unit for legacy thin LTO builds
Steven Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 10:36:54 PDT 2019
steven_wu added inline comments.
================
Comment at: lib/Driver/ToolChains/Clang.cpp:5400
+ // does not support LTO unit splitting.
+ bool SplitLTOUnitSupported = D.getLTOMode() == LTOK_Full ||
+ !(RawTriple.isOSDarwin() || RawTriple.isPS4());
----------------
evgeny777 wrote:
> steven_wu wrote:
> > I think this would be cleaner if we add a virtual function `supportSplitLTOUnit` to Toolchain, and let toolchain decide if it is supported, rather than hard code this in Clang.cpp.
> It doesn't make sense to use virtual function, because there is no toolchain class for PS4. I'd suggest make an ordinary member function checking triple
PS4CPU.h is not PS4 toolchain? If there is no PS4 toolchain, let's stick with your original patch.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69173/new/
https://reviews.llvm.org/D69173
More information about the llvm-commits
mailing list