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 | a950eb976c78dacfe647f115b637a041044639d1 (patch) | |
tree | 577093d5693585da6a7f3b78d55196d87454ae14 /include | |
parent | 9cd1e1f867dc0241c5bc241e1e09bf6bb7a6c2e6 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/LTO/Config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/LTO/Config.h b/include/llvm/LTO/Config.h index 5ba8492db8f..73106f77ca5 100644 --- a/include/llvm/LTO/Config.h +++ b/include/llvm/LTO/Config.h @@ -46,6 +46,9 @@ struct Config { unsigned OptLevel = 2; bool DisableVerify = false; + /// Use the new pass manager + bool UseNewPM = false; + /// Disable entirely the optimizer, including importing for ThinLTO bool CodeGenOnly = false; |