[ThinLTO] Handle -fdebug-pass-manager for backend invocations via clang
authorTeresa Johnson <tejohnson@google.com>
Fri, 10 Nov 2017 23:37:39 +0000 (23:37 +0000)
committerTeresa Johnson <tejohnson@google.com>
Fri, 10 Nov 2017 23:37:39 +0000 (23:37 +0000)
commit140c1a0966ed45714f3ecc60474c7bf6eca341a3
treed89a0475da83d5e9d9ae53af47f1f610a51caf90
parentbdb8db458917cd3d6a0b1d9dd67cb86748c052fb
[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
clang/lib/CodeGen/BackendUtil.cpp
clang/test/CodeGen/thinlto-debug-pm.c [new file with mode: 0644]