Don't run internalize if we're outputing bit-code and not an object file.
authorBill Wendling <isanbard@gmail.com>
Mon, 8 Jul 2013 23:23:03 +0000 (23:23 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 8 Jul 2013 23:23:03 +0000 (23:23 +0000)
commitc6fbaa97016beb90a7508dd6442c83565c27c241
tree2433bec4f44201080c087b5291a39213c672bceb
parent6cf7246ecaf058733fdf8fa47896907204839f68
Don't run internalize if we're outputing bit-code and not an object file.

The problem with running internalize before we're ready to output an object file
is that it may change a 'weak' symbol into an internal one, but that symbol
could be needed by an external object file --- e.g. with arclite.

<rdar://problem/14334895>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185882 91177308-0d34-0410-b5e6-96231b3b80d8
tools/lto/LTOCodeGenerator.cpp