Add a way to grab the target options from the LTO command line.
authorBill Wendling <isanbard@gmail.com>
Mon, 6 Aug 2012 21:34:54 +0000 (21:34 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 6 Aug 2012 21:34:54 +0000 (21:34 +0000)
commit9ac0aaa6afe4162b4db32833f9f176ac05ce6f8f
tree7e73edd47cc7e1072225948ca0803c30049a1e89
parentfc54d9e47a1276650f14f38e7d037c9b58c8dc2d
Add a way to grab the target options from the LTO command line.

When the command line target options were removed from the LLVM libraries, LTO
lost its ability to specify things like `-disable-fp-elim'. Add this back by
adding the command line variables to the `lto' project.
<rdar://problem/12038729>

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