LTO: Hash the parts of the LTO configuration that affect code generation.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Dec 2016 05:28:30 +0000 (05:28 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Dec 2016 05:28:30 +0000 (05:28 +0000)
commitf4257528e967dae1cf49328f2a8cfdc28815a2f3
treefc36e6dc56613a56774c2e8b5476f0c09fc71ff0
parentb2979d84647ab3b2e449c5302b256da2b846e02e
LTO: Hash the parts of the LTO configuration that affect code generation.

Most importantly, we need to hash the relocation model, otherwise we can
end up trying to link non-PIC object files into PIEs or DSOs.

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

llvm-svn: 289024
llvm/include/llvm/CodeGen/CommandFlags.h
llvm/include/llvm/LTO/Config.h
llvm/lib/LTO/LTO.cpp
llvm/test/ThinLTO/X86/cache-config.ll [new file with mode: 0644]
llvm/tools/llvm-lto2/llvm-lto2.cpp