diff options
author | Yi Kong <yikong@google.com> | 2017-09-18 23:24:01 +0000 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2017-09-18 23:24:01 +0000 |
commit | a026eb5f503d5af41f65897235bdd421dd1adb68 (patch) | |
tree | a1f324ff5461a31d118f0d30256d2b0aa5153c2f /clang/docs/ThinLTO.rst | |
parent | bbf8f23ed93a79f1427e9b42a197228075d7fe96 (diff) | |
download | llvm-a026eb5f503d5af41f65897235bdd421dd1adb68.zip llvm-a026eb5f503d5af41f65897235bdd421dd1adb68.tar.gz llvm-a026eb5f503d5af41f65897235bdd421dd1adb68.tar.bz2 |
[Docs] Document cache pruning support for gold
Differential Revision: https://reviews.llvm.org/D37995
llvm-svn: 313591
Diffstat (limited to 'clang/docs/ThinLTO.rst')
-rw-r--r-- | clang/docs/ThinLTO.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/docs/ThinLTO.rst b/clang/docs/ThinLTO.rst index c497796..607121f 100644 --- a/clang/docs/ThinLTO.rst +++ b/clang/docs/ThinLTO.rst @@ -141,10 +141,12 @@ Cache Pruning ------------- To help keep the size of the cache under control, ThinLTO supports cache -pruning. Cache pruning is supported with ld64 and ELF and COFF lld, but -currently only ELF and COFF lld allow you to control the policy with a +pruning. Cache pruning is supported with gold, ld64 and ELF and COFF lld, but +currently only gold, ELF and COFF lld allow you to control the policy with a policy string. The cache policy must be specified with a linker option. +- gold (as of LLVM 6.0): + ``-Wl,-plugin-opt,cache-policy=POLICY`` - ELF lld (as of LLVM 5.0): ``-Wl,--thinlto-cache-policy,POLICY`` - COFF lld-link (as of LLVM 6.0): |