[ThinLTO] Make sure the Context used for the ThinLTO backend has all the appropriate...
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 23 Aug 2016 16:53:34 +0000 (16:53 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 23 Aug 2016 16:53:34 +0000 (16:53 +0000)
commit9ec5a61358fa7e5f4af389562a62400dd7201504
tree97276d0c36ad4c65a3056a8bc8c9ebfa3d471052
parent97f446c04217045e181d6a88e1ad3a5ca55601a5
[ThinLTO] Make sure the Context used for the ThinLTO backend has all the appropriate options

An important performance setting on the LLVMContext for LTO is
enableDebugTypeODRUniquing(), this adds an automatic merging of
debug information in the context based on type ids.

Also, the lto::Config includes a diagnostic handler that needs to
be set on the Context, as well as the setDiscardValueNames() setting.

llvm-svn: 279532
llvm/lib/LTO/LTO.cpp
llvm/lib/LTO/LTOBackend.cpp