]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Remove the PreserveSource linker mode.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 28 Oct 2014 00:24:16 +0000 (00:24 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 28 Oct 2014 00:24:16 +0000 (00:24 +0000)
commitc35c39b73c0afb658aebdde6edcbc98b924c8ef1
tree4c21c45ed71cd74f739d6a381f06e5dc50906ddc
parent9ef2fd877567c1e060ca8327d7d8ce8d32a999bd
Remove the PreserveSource linker mode.

I noticed that it was untested, and forcing it on caused some tests to fail:

    LLVM :: Linker/metadata-a.ll
    LLVM :: Linker/prefixdata.ll
    LLVM :: Linker/type-unique-odr-a.ll
    LLVM :: Linker/type-unique-simple-a.ll
    LLVM :: Linker/type-unique-simple2-a.ll
    LLVM :: Linker/type-unique-simple2.ll
    LLVM :: Linker/type-unique-type-array-a.ll
    LLVM :: Linker/unnamed-addr1-a.ll
    LLVM :: Linker/visibility1.ll

If it is to be resurrected, it has to be fixed and we should probably have a
-preserve-source command line option in llvm-mc and run tests with and without
it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220741 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Linker/Linker.h
lib/Linker/LinkModules.cpp
tools/bugpoint/BugDriver.cpp
tools/bugpoint/Miscompilation.cpp
unittests/Linker/LinkModulesTest.cpp