]> granicus.if.org Git - clang/commit
[LTO] Fix -save-temps with LTO and unnamed globals.
authorEli Friedman <efriedma@codeaurora.org>
Fri, 24 Aug 2018 19:31:52 +0000 (19:31 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Fri, 24 Aug 2018 19:31:52 +0000 (19:31 +0000)
commit2574b3b303fb950ab1f3e9afe84932cc4b521560
tree40ca1cba666c1a3b0d36ec24396d97e17fdf7eb0
parent8e7c1967e0729d3a9db41b1eeb2b3f73ee44f01c
[LTO] Fix -save-temps with LTO and unnamed globals.

If all LLVM passes are disabled, we can't emit a summary because there
could be unnamed globals in the IR.

Differential Revision: https://reviews.llvm.org/D51198

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340640 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
test/CodeGen/summary-index-unnamed-global.ll [new file with mode: 0644]