[LTO API] add lto_codegen_set_should_internalize.
authorManman Ren <manman.ren@gmail.com>
Fri, 17 Apr 2015 17:10:09 +0000 (17:10 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 17 Apr 2015 17:10:09 +0000 (17:10 +0000)
commit44b800f44d61d5377a96f187deb20901b94ea279
treedef3a5bb8ea801bb893766c6da0f8d7eb4819d0f
parentc7b16819e8b7571ad80083e010e2475bea812d49
[LTO API] add lto_codegen_set_should_internalize.

When debugging LTO issues with ld64, we use -save-temps to save the merged
optimized bitcode file, then invoke ld64 again on the single bitcode file.
The saved bitcode file is already internalized, so we can call
lto_codegen_set_should_internalize and skip running internalization again.

rdar://20227235

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235211 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/lto.h
include/llvm/LTO/LTOCodeGenerator.h
lib/LTO/LTOCodeGenerator.cpp
tools/lto/lto.cpp
tools/lto/lto.exports