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)
commit9f8eff31db00ba4efdef4c81858d12a7e9c93b46
treed6f22e338845c1825cfd2c8fffa0141ffd0b83c2
parent294eecf69e9b36bf67d96ffa162ed3372a14c4ee
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.

llvm-svn: 220741
llvm/include/llvm/Linker/Linker.h
llvm/lib/Linker/LinkModules.cpp
llvm/tools/bugpoint/BugDriver.cpp
llvm/tools/bugpoint/Miscompilation.cpp
llvm/unittests/Linker/LinkModulesTest.cpp