diff options
author | Teresa Johnson <tejohnson@google.com> | 2017-11-10 23:37:39 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2017-11-10 23:37:39 +0000 |
commit | 140c1a0966ed45714f3ecc60474c7bf6eca341a3 (patch) | |
tree | d89a0475da83d5e9d9ae53af47f1f610a51caf90 /clang/lib | |
parent | bdb8db458917cd3d6a0b1d9dd67cb86748c052fb (diff) | |
download | bcm5719-llvm-140c1a0966ed45714f3ecc60474c7bf6eca341a3.tar.gz bcm5719-llvm-140c1a0966ed45714f3ecc60474c7bf6eca341a3.zip |
[ThinLTO] Handle -fdebug-pass-manager for backend invocations via clang
Summary:
The LTO Config field wasn't being set when invoking a ThinLTO backend
via clang (i.e. for distributed builds).
Reviewers: danielcdh
Subscribers: mehdi_amini, inglorion, eraman, cfe-commits
Differential Revision: https://reviews.llvm.org/D39923
llvm-svn: 317951
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 893967a9d66..0df446327a8 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -1073,6 +1073,7 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M, initTargetOptions(Conf.Options, CGOpts, TOpts, LOpts, HeaderOpts); Conf.SampleProfile = std::move(SampleProfile); Conf.UseNewPM = CGOpts.ExperimentalNewPassManager; + Conf.DebugPassManager = CGOpts.DebugPassManager; switch (Action) { case Backend_EmitNothing: Conf.PreCodeGenModuleHook = [](size_t Task, const Module &Mod) { |