summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/Reproduce.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move new lld's code to Common subdirectory.Rui Ueyama2017-10-021-66/+0
| | | | | | | | | | New lld's files are spread under lib subdirectory, and it isn't easy to find which files are actually maintained. This patch moves maintained files to Common subdirectory. Differential Revision: https://reviews.llvm.org/D37645 llvm-svn: 314719
* Use StringRef::contains().Rui Ueyama2017-07-191-3/+3
| | | | llvm-svn: 308526
* Define sys::path::convert_to_slashRui Ueyama2017-01-091-11/+1
| | | | | | | | This patch moves convertToUnixPathSeparator from LLD to LLVM. Differential Revision: https://reviews.llvm.org/D28444 llvm-svn: 291414
* Revert r291221.Rafael Espindola2017-01-061-1/+11
| | | | | | Should bring back the windows bots. llvm-svn: 291263
* Rename lld::stringize -> lld::toString.Rui Ueyama2017-01-061-1/+1
| | | | llvm-svn: 291223
* Remove lld::convertToUnixPathSeparator.Rui Ueyama2017-01-061-11/+1
| | | | | | | Now TarWriter takes care of path separator conversion, so we don't need to handle that in LLD. llvm-svn: 291221
* Use TarWriter to create tar archives instead of cpio.Rui Ueyama2017-01-061-54/+2
| | | | | | | | | | This is how we use TarWriter in LLD. Now LLD does not append a file extension, so you need to pass `--reproduce foo.tar` instead of `--reproduce foo`. Differential Revision: https://reviews.llvm.org/D28103 llvm-svn: 291210
* Fix Windows buildbots.Rui Ueyama2016-12-071-1/+1
| | | | llvm-svn: 288975
* Make convertToUnixPathSeparator return a new string instead of mutating ↵Rui Ueyama2016-12-071-7/+8
| | | | | | argument. llvm-svn: 288972
* [ELF] - Print absolute file name in errors when possible.George Rimar2016-12-071-8/+6
| | | | | | | | | | | | | | | | | | | Currently LLD prints basename of source file name in error messages, for example: $ mkdir foo $ echo 'void _start(void) { foobar(); }' > foo/bar.c $ gcc -g -c foo/bar.c $ bin/ld.lld -o out bar.o bin/ld.lld: error: bar.c:1: undefined symbol 'foobar' $ This should say: bin/ld.lld: error: foo/bar.c:1: undefined symbol 'foobar' This is PR31299 Differential revision: https://reviews.llvm.org/D27506 llvm-svn: 288966
* [ELF] Don't replace path separators on *NIX.Davide Italiano2016-11-161-0/+2
| | | | | | | | | Apparently this is wrong because it's legal to have a filename on UNIX which contains a backslash. Differential Revision: https://reviews.llvm.org/D26734 llvm-svn: 287143
* [ELF] - Fixed comment. NFC.George Rimar2016-11-121-1/+1
| | | | llvm-svn: 286712
* [ELF] - Use backward slashes inside response filesGeorge Rimar2016-11-111-4/+10
| | | | | | | | | | Patch replaces forward slashes with backward inside response.txt This is https://llvm.org/bugs/show_bug.cgi?id=30951. Differential revision: https://reviews.llvm.org/D26443 llvm-svn: 286589
* Add qualification to fix MSVC build.Peter Collingbourne2016-07-261-1/+1
| | | | llvm-svn: 276720
* COFF: Implement /linkrepro flag.Peter Collingbourne2016-07-261-0/+121
This flag is implemented similarly to --reproduce in the ELF linker. This patch implements /linkrepro by moving the cpio writer and associated utility functions to lldCore, and using that implementation in both linkers. One COFF-specific detail is that we store the object file from which the resource files were created in our reproducer, rather than the resource files themselves. This allows the reproducer to be used on non-Windows systems for example. Differential Revision: https://reviews.llvm.org/D22418 llvm-svn: 276719
OpenPOWER on IntegriCloud