summaryrefslogtreecommitdiffstats
path: root/lld/Common
Commit message (Collapse)AuthorAgeFilesLines
...
* [coff] Print detailed timing information with /TIME.Zachary Turner2018-01-172-0/+72
| | | | | | | | | The classes used to print and update time information are in common, so other linkers could use this as well if desired. Differential Revision: https://reviews.llvm.org/D41915 llvm-svn: 322736
* Add a missing build dependency.Rui Ueyama2017-12-141-0/+1
| | | | | | Patch by Chen-Pang He. llvm-svn: 320754
* Use ErrorOS for log messages as well as errorSam Clegg2017-12-111-2/+1
| | | | | | | | | | | | | | | | log are also diagnostics so it seems like they should to the same place as errors and debug messages. Without this change when I enable --verbose those messages go to stdout, but when I enable "-mllvm -debug" those messages go to stderr (because dbgs() goes to stderr by default). So I end up having to do this a lot: lld <args> > output_message 2>&1 Differential Revision: https://reviews.llvm.org/D41033 llvm-svn: 320427
* toString function take a const refs where possibleSam Clegg2017-12-051-5/+5
| | | | | | Differential Revision: https://reviews.llvm.org/D40824 llvm-svn: 319787
* Move Memory.{h,cpp} to Common.Rui Ueyama2017-11-282-0/+24
| | | | | | Differential Revision: https://reviews.llvm.org/D40571 llvm-svn: 319221
* Fix formatting.Rui Ueyama2017-11-281-2/+2
| | | | llvm-svn: 319212
* Factor out more code to Common/Args.cpp.Rui Ueyama2017-11-282-0/+63
| | | | | | Differential Revision: https://reviews.llvm.org/D40540 llvm-svn: 319211
* Fix shared library builds of lld, broken in SVN r319138Martin Storsjo2017-11-281-0/+1
| | | | llvm-svn: 319152
* Factor out common code to Common/Strings.cpp.Rui Ueyama2017-11-282-0/+33
| | | | | | Differential Revision: https://reviews.llvm.org/D40530 llvm-svn: 319138
* Fix for file renaming in LLVM (CommandFlags.h -> CommandFlags.def)David Blaikie2017-11-271-3/+3
| | | | llvm-svn: 319084
* Try harder to delete the temporary file.Rafael Espindola2017-11-131-0/+3
| | | | | | | | | | | | | | | | | It is really hard to cover restarts in a debugger, SIGKILL or power failures. I will try to handle them in a followup patch, but it will not support all the systems lld has to run on. RemoveFileOnSignal takes care of crashes. So what is left is making sure all regular exits delete the file. This patch does that by moving the buffer to error handling. That is a bit of a hack, but seemed better than to generalize it to take a callback on construction. I will implement this on COFF on the next patch. llvm-svn: 318060
* Delete dead code.Rafael Espindola2017-11-072-21/+0
| | | | llvm-svn: 317633
* Instead of enclosing an entire file, add lld:: specifier for public functions.Rui Ueyama2017-10-271-7/+2
| | | | llvm-svn: 316776
* [lld] unified COFF and ELF error handling on new Common/ErrorHandlerBob Haarman2017-10-252-0/+123
| | | | | | | | | | | | | | | | | | | Summary: The COFF linker and the ELF linker have long had similar but separate Error.h and Error.cpp files to implement error handling. This change introduces new error handling code in Common/ErrorHandler.h, changes the COFF and ELF linkers to use it, and removes the old, separate implementations. Reviewers: ruiu Reviewed By: ruiu Subscribers: smeenai, jyknight, emaste, sdardis, nemanjai, nhaehnle, mgorny, javed.absar, kbarton, fedor.sergeev, llvm-commits Differential Revision: https://reviews.llvm.org/D39259 llvm-svn: 316624
* Fix shared build of liblldCommon.so on LinuxAlexander Richardson2017-10-171-0/+3
| | | | llvm-svn: 315988
* Fix build.Rafael Espindola2017-10-131-0/+1
| | | | llvm-svn: 315732
* [lld] Move Threads to CommonBob Haarman2017-10-132-0/+32
| | | | | | | | | | | | | | | | Summary: This will allow using the functionality from other linkers. It is also a prerequisite for sharing the error logging code. Reviewers: ruiu Reviewed By: ruiu Subscribers: emaste, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D38822 llvm-svn: 315725
* lldCommon depends on intrinsics_gen, due to llvm/CodeGen/CommandFlags.hNAKAMURA Takumi2017-10-031-0/+7
| | | | llvm-svn: 314759
* Fix the shared library build.Rui Ueyama2017-10-021-0/+1
| | | | llvm-svn: 314725
* Attempt to fix buildbots.Rui Ueyama2017-10-021-2/+4
| | | | llvm-svn: 314724
* Move new lld's code to Common subdirectory.Rui Ueyama2017-10-024-0/+153
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
OpenPOWER on IntegriCloud