llvm-project/lld/include/lld/Core
Brian Gesiak b9f7f4b87c [Darwin] Use errorHandler from liblldCommon
Summary:
Error handling in liblldCore and the Darwin toolchain prints to an
output stream. A TODO in the project explained that a diagnostics
interface resembling Clang's should be added.

For now, the simple diagnostics interface defined in liblldCommon seems
like an improvement. It prints colors when they're available, uses locks
for thread-safety, and abstracts away the `"error: "` and newline
literal strings that litter the Darwin toolchain code.

To use the liblldCommon error handler, a link dependency is added to
the liblldDriver library.

Test Plan:
1. check-lld
2. Invoke `ld64.lld -r` in a terminal that supports color output.
   Confirm that "ld64.lld: error: -arch not specified and could not be inferred"
   is output, and that the "error:" is colored red!

Reviewers: ruiu, smeenai

Reviewed By: ruiu

Subscribers: mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D47998

llvm-svn: 334466
2018-06-12 02:34:04 +00:00
..
AbsoluteAtom.h
ArchiveLibraryFile.h Remove dead flags. 2016-03-28 20:59:47 +00:00
Atom.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
DefinedAtom.h Remove \brief commands from doxygen comments. 2018-05-15 16:40:54 +00:00
Error.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
File.h Remove \brief commands from doxygen comments. 2018-05-15 16:40:54 +00:00
Instrumentation.h Remove \brief commands from doxygen comments. 2018-05-15 16:40:54 +00:00
LinkingContext.h [Darwin] Use errorHandler from liblldCommon 2018-06-12 02:34:04 +00:00
Node.h Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-04 17:39:46 +00:00
Pass.h Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-05 01:00:56 +00:00
PassManager.h Remove \brief commands from doxygen comments. 2018-05-15 16:40:54 +00:00
Reader.h Remove \brief commands from doxygen comments. 2018-05-15 16:40:54 +00:00
Reference.h Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-05 01:00:56 +00:00
Resolver.h Remove \brief commands from doxygen comments. 2018-05-15 16:40:54 +00:00
SharedLibraryAtom.h Use owning pointers instead of raw pointers for Atom's to fix leaks. 2016-03-22 17:15:50 +00:00
SharedLibraryFile.h Remove dead flags. 2016-03-28 20:59:47 +00:00
Simple.h Remove \brief commands from doxygen comments. 2018-05-15 16:40:54 +00:00
SymbolTable.h Remove \brief commands from doxygen comments. 2018-05-15 16:40:54 +00:00
TODO.txt [Darwin] Use errorHandler from liblldCommon 2018-06-12 02:34:04 +00:00
UndefinedAtom.h Use owning pointers instead of raw pointers for Atom's to fix leaks. 2016-03-22 17:15:50 +00:00
Writer.h Remove \brief commands from doxygen comments. 2018-05-15 16:40:54 +00:00