LTO: Change signature of LTOCodeGenerator::setCodePICModel() to take a Reloc::Model.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 21 Aug 2015 22:57:17 +0000 (22:57 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 21 Aug 2015 22:57:17 +0000 (22:57 +0000)
commitaa7ad072c97a20161a4d75a054f75535998558f9
tree9a14c42ab52a0a157e41405161ec01cf66f34a54
parent7d43ecc4d444cb52c7b762c01a457c4720d90768
LTO: Change signature of LTOCodeGenerator::setCodePICModel() to take a Reloc::Model.

This allows us to remove a bunch of code in LTOCodeGenerator and llvm-lto
and has the side effect of improving error handling in the libLTO C API.

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