[ThinLTO] Handle -fdebug-pass-manager for backend invocations via clang
authorTeresa Johnson <tejohnson@google.com>
Mon, 13 Nov 2017 15:38:33 +0000 (15:38 +0000)
committerTeresa Johnson <tejohnson@google.com>
Mon, 13 Nov 2017 15:38:33 +0000 (15:38 +0000)
commit4cd016ab7c9bbcf8436015bbbefdbebae010d02a
tree79dd5a0a15ac72ff52ef9f3dbb9a45c8f7fc922b
parent4c679e14354480e7a0ad24f84133b47b3b666d51
[ThinLTO] Handle -fdebug-pass-manager for backend invocations via clang

Recommit of r317951 and r317951 along with what I believe should fix
the remaining buildbot failures - the target triple should be specified
for both the ThinLTO pre-thinlink compile and backend (post-thinlink)
compile to ensure it is consistent.

Original description:
The LTO Config field wasn't being set when invoking a ThinLTO backend
via clang (i.e. for distributed builds).

llvm-svn: 318042
clang/lib/CodeGen/BackendUtil.cpp
clang/test/CodeGen/thinlto-debug-pm.c [new file with mode: 0644]