aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Linker/LinkModulesTest.cpp
AgeCommit message (Collapse)AuthorFilesLines
2014-11-17Factor common code it Linker::init.Rafael Espindola1-0/+20
The TypeFinder was not being used in one of the constructors. llvm-svn: 222172
2014-10-28Remove the PreserveSource linker mode.Rafael Espindola1-11/+15
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
2014-10-25Update the error handling of lib/Linker.Rafael Espindola1-3/+3
Instead of passing a std::string&, use the new diagnostic infrastructure. llvm-svn: 220608
2014-06-08[C++11] Use 'nullptr'.Craig Topper1-5/+5
llvm-svn: 210442
2014-04-29LinkModulesTest.cpp: Reformat.NAKAMURA Takumi1-20/+13
llvm-svn: 207537
2014-04-29LinkModulesTest.cpp: Use test-specific Ctx instead of getGlobalContext(). ↵NAKAMURA Takumi1-4/+2
The global context might not be free'd. [vg_leak] llvm-svn: 207535
2014-03-06Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles1-1/+1
This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary. llvm-svn: 203083
2014-03-06[Layering] Sink Linker.h into a Linker subdirectory to make itChandler Carruth1-1/+1
consistent with every other sub-library header in LLVM. llvm-svn: 203065
2014-03-04[cleanup] Re-sort all the includes with utils/sort_includes.py.Chandler Carruth1-1/+1
llvm-svn: 202811
2014-01-16Reapply r194218 with fix:Bill Wendling1-0/+165
Move copying of global initializers below the cloning of functions. The BlockAddress doesn't have access to the correct basic blocks until the functions have been cloned. This causes the BlockAddress to point to the old values. Just wait until the functions have been cloned before copying the initializers. PR13163 llvm-svn: 199354
2013-11-09Revert "Move copying of global initializers below the cloning of functions."Adrian Prantl1-131/+0
This would cause internal symbols that are only referenced by global initializers to be removed. This reverts commit 194219. llvm-svn: 194304
2013-11-09Revert "Run clang-format on file."Adrian Prantl1-9/+14
This reverts commit 194219. llvm-svn: 194303
2013-11-07Run clang-format on file.Bill Wendling1-14/+9
llvm-svn: 194219
2013-11-07Move copying of global initializers below the cloning of functions.Bill Wendling1-0/+131
The BlockAddress doesn't have access to the correct basic blocks until the functions have been cloned. This causes the BlockAddress to point to the old values. Just wait until the functions have been cloned before copying the initializers. PR13163 llvm-svn: 194218