llvm-capstone/lld/COFF
Rui Ueyama a52f982f1c Improve raw_ostream so that you can "write" colors using operator<<
1. raw_ostream supports ANSI colors so that you can write messages to
the termina with colors. Previously, in order to change and reset
color, you had to call `changeColor` and `resetColor` functions,
respectively.

So, if you print out "error: " in red, for example, you had to do
something like this:

  OS.changeColor(raw_ostream::RED);
  OS << "error: ";
  OS.resetColor();

With this patch, you can write the same code as follows:

  OS << raw_ostream::RED << "error: " << raw_ostream::RESET;

2. Add a boolean flag to raw_ostream so that you can disable colored
output. If you disable colors, changeColor, operator<<(Color),
resetColor and other color-related functions have no effect.

Most LLVM tools automatically prints out messages using colors, and
you can disable it by passing a flag such as `--disable-colors`.
This new flag makes it easy to write code that works that way.

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

llvm-svn: 367649
2019-08-02 04:48:30 +00:00
..
Chunks.cpp [COFF] Rename variale references in comments after VariableName -> variableName change 2019-07-16 08:26:38 +00:00
Chunks.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
CMakeLists.txt [LLD][COFF] Early dependency detection 2019-04-01 13:36:59 +00:00
Config.h [COFF] Implement /safeseh:no and check @feat.00 flags by default 2019-07-16 18:17:33 +00:00
DebugTypes.cpp [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
DebugTypes.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
DLL.cpp [COFF] Rename variale references in comments after VariableName -> variableName change 2019-07-16 08:26:38 +00:00
DLL.h [COFF] Share the tail in delayimport symbol thunks 2019-07-11 21:19:11 +00:00
Driver.cpp Improve raw_ostream so that you can "write" colors using operator<< 2019-08-02 04:48:30 +00:00
Driver.h lld-link: Demangle symbols from archives in diagnostics 2019-07-19 13:29:10 +00:00
DriverUtils.cpp Improve raw_ostream so that you can "write" colors using operator<< 2019-08-02 04:48:30 +00:00
ICF.cpp [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
ICF.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
InputFiles.cpp ld.lld: Demangle symbols from archives in diagnostics 2019-07-23 19:00:01 +00:00
InputFiles.h lld-link: Demangle symbols from archives in diagnostics 2019-07-19 13:29:10 +00:00
LTO.cpp [lld-link] implement -thinlto-{prefix,object-suffix}-replace 2019-07-11 18:48:58 +00:00
LTO.h [lld-link] implement -thinlto-index-only 2019-07-11 18:03:14 +00:00
MapFile.cpp Update comments for r365730. NFC. 2019-07-11 06:08:54 +00:00
MapFile.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
MarkLive.cpp Fix odd variable names. 2019-07-12 06:12:27 +00:00
MarkLive.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
MinGW.cpp [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
MinGW.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
Options.td [lld-link] implement -thinlto-{prefix,object-suffix}-replace 2019-07-11 18:48:58 +00:00
PDB.cpp [COFF] Rename variale references in comments after VariableName -> variableName change 2019-07-16 08:26:38 +00:00
PDB.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
README.md
Symbols.cpp ld.lld: Demangle symbols from archives in diagnostics 2019-07-23 19:00:01 +00:00
Symbols.h ld.lld: Demangle symbols from archives in diagnostics 2019-07-23 19:00:01 +00:00
SymbolTable.cpp Fix an unused variable warning. 2019-08-02 02:51:20 +00:00
SymbolTable.h [lld-link] diagnose undefined symbols before LTO when possible 2019-07-26 17:56:45 +00:00
TypeMerger.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
Writer.cpp [COFF] Unbreak sorting of mingw comdat .tls sections after SVN r363457 2019-07-23 06:38:04 +00:00
Writer.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00

See docs/NewLLD.rst