diff options
author | Tim Shen <timshen91@gmail.com> | 2017-06-01 23:13:44 +0000 |
---|---|---|
committer | Tim Shen <timshen91@gmail.com> | 2017-06-01 23:13:44 +0000 |
commit | 4e912aa5af44b3f3024cfcb4a3bfb932c49fc225 (patch) | |
tree | 3e44bb19b341237548315ba0a7f55bf2ea667a9b /llvm/lib/LTO/LTO.cpp | |
parent | c3688315805825576527f238f8dd9a6def90a4ee (diff) | |
download | llvm-4e912aa5af44b3f3024cfcb4a3bfb932c49fc225.zip llvm-4e912aa5af44b3f3024cfcb4a3bfb932c49fc225.tar.gz llvm-4e912aa5af44b3f3024cfcb4a3bfb932c49fc225.tar.bz2 |
[ThinLTO] Move -lto-use-new-pm to llvm-lto2, and change it to -use-new-pm.
Summary:
As we teach Clang to use ThinkLTO + new PM, it's good for the users to
inject through Config, instead of setting a flag in the LTOBackend
library. Move the flag to llvm-lto2.
As it moves to llvm-lto2, a new name -use-new-pm seems simpler and as
clear.
Reviewers: davide, tejohnson
Subscribers: mehdi_amini, Prazek, inglorion, eraman, chandlerc, llvm-commits
Differential Revision: https://reviews.llvm.org/D33799
llvm-svn: 304492
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index b8698c8..2bd3af6 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -122,6 +122,7 @@ static void computeCacheKey( AddUnsigned(Conf.CGOptLevel); AddUnsigned(Conf.CGFileType); AddUnsigned(Conf.OptLevel); + AddUnsigned(Conf.UseNewPM); AddString(Conf.OptPipeline); AddString(Conf.AAPipeline); AddString(Conf.OverrideTriple); |