diff options
| author | Zachary Turner <zturner@google.com> | 2015-02-28 19:08:27 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2015-02-28 19:08:27 +0000 |
| commit | 9e1ce99d81129b17d3cb68e72b02d5cce2ebc463 (patch) | |
| tree | 95e68e4ead8439f1147167a2beb7f0d4656b1cd8 /llvm/lib/IR | |
| parent | 1b7b56fbcc153688c6cc4604b4285b4fce0b5edf (diff) | |
| download | bcm5719-llvm-9e1ce99d81129b17d3cb68e72b02d5cce2ebc463.tar.gz bcm5719-llvm-9e1ce99d81129b17d3cb68e72b02d5cce2ebc463.zip | |
[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
llvm-svn: 230859
Diffstat (limited to 'llvm/lib/IR')
0 files changed, 0 insertions, 0 deletions

