summaryrefslogtreecommitdiffstats
path: root/lld/Common/ErrorHandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [Common] Discard the temp file while keeping the memory mapping open, on errorsMartin Storsjo2018-08-241-2/+3
| | | | | | Differential Revision: https://reviews.llvm.org/D51095 llvm-svn: 340635
* [LTO] Errors in LLVM backend should manifest as lld errorsSam Clegg2018-07-021-1/+12
| | | | | | Differential Revision: https://reviews.llvm.org/D48812 llvm-svn: 336143
* Code cleanup in preparation for adding LTO for wasm. NFC.Sam Clegg2018-05-221-1/+15
| | | | | | | | | | | | | | - Move some common code into Common/rrorHandler.cpp and Common/Strings.h. - Don't use `fatal` when incompatible bitcode files are encountered. - Rename NameRef variable to just Name See D47162 Differential Revision: https://reviews.llvm.org/D47206 llvm-svn: 333021
* 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
* 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-071-1/+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-251-0/+122
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
OpenPOWER on IntegriCloud