llvm-6502/lib/Support/Windows
Zachary Turner a0a46d1595 [raw_ostream] When printing color on Windows, use correct bg color.
When using SetConsoleTextAttribute() to set the foreground or
background color, if you don't explicitly set both colors, then
a default value of black will be chosen for whichever you don't
specify a value for.

This is annoying when you have a non default console background
color, for example, and you try to set the foreground color.

This patch gets the existing fg/bg color and when you set one
attribute, sets the opposite attribute to its existing color
prior to comitting the update.

Reviewed by: Aaron Ballman
Differential Revision: http://reviews.llvm.org/D7967

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230859 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-28 19:08:27 +00:00
..
DynamicLibrary.inc Fix symbol resolution of floating point libc builtins in MCJIT 2014-11-13 23:32:52 +00:00
explicit_symbols.inc [Cygming] Seek also chkstk_ms, or JIT fails with DLL builds. It is fixup for r227519. 2015-01-30 13:01:19 +00:00
Host.inc
Memory.inc
Mutex.inc
Path.inc Remove the last unnecessary member variable of mapped_file_region. NFC. 2014-12-16 03:10:29 +00:00
Process.inc [raw_ostream] When printing color on Windows, use correct bg color. 2015-02-28 19:08:27 +00:00
Program.inc [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
RWMutex.inc
Signals.inc Silence some Win64 clang-cl warnings about unused stuff due to ifdefs 2015-02-26 21:08:21 +00:00
ThreadLocal.inc ThreadLocal: Return a mutable pointer if templated with a non-const type 2014-12-15 01:04:45 +00:00
TimeValue.inc
Watchdog.inc
WindowsSupport.h Removing LLVM_EXPLICIT, as MSVC 2012 was the last reason for requiring the macro. NFC; LLVM edition. 2015-02-15 22:00:20 +00:00