diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-16 07:59:39 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-16 07:59:39 +0000 |
commit | 64104f16d4132211a86a40eac35cc75c4a79bdcf (patch) | |
tree | c58e91a782d33d04b7146cc9ec978fcdfc1f2214 /llvm/lib/Support/Windows | |
parent | 4badeb3f0dbe187f8fd571cdcc3133bfec5cffea (diff) | |
download | bcm5719-llvm-64104f16d4132211a86a40eac35cc75c4a79bdcf.tar.gz bcm5719-llvm-64104f16d4132211a86a40eac35cc75c4a79bdcf.zip |
Revert r154800 which breaks windows builders.
llvm-svn: 154802
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r-- | llvm/lib/Support/Windows/Process.inc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/llvm/lib/Support/Windows/Process.inc b/llvm/lib/Support/Windows/Process.inc index a61ce551706..913b0734ddc 100644 --- a/llvm/lib/Support/Windows/Process.inc +++ b/llvm/lib/Support/Windows/Process.inc @@ -215,39 +215,6 @@ const char *Process::OutputColor(char code, bool bold, bool bg) { return 0; } -WORD GetConsoleTextAttribute(__in HANDLE hConsoleOutput) -{ - CONSOLE_SCREEN_BUFFER_INFO info; - GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE),&info); - return info.wAttributes; -} - -const char *Process::OutputReverse() { - const WORD attributes - = GetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE)); - - const WORD foreground_mask = FOREGROUND_BLUE | FOREGROUND_GREEN | - FOREGROUND_RED | FOREGROUND_INTENSITY; - const WORD background_mask = BACKGROUND_BLUE | BACKGROUND_GREEN | - BACKGROUND_RED | BACKGROUND_INTENSITY; - const WORD color_mask = foreground_mask | background_mask; - - WORD new_attributes = - ((attributes & FOREGROUND_BLUE )?BACKGROUND_BLUE :0) | - ((attributes & FOREGROUND_GREEN )?BACKGROUND_GREEN :0) | - ((attributes & FOREGROUND_RED )?BACKGROUND_RED :0) | - ((attributes & FOREGROUND_INTENSITY)?BACKGROUND_INTENSITY:0) | - ((attributes & BACKGROUND_BLUE )?FOREGROUND_BLUE :0) | - ((attributes & BACKGROUND_GREEN )?FOREGROUND_GREEN :0) | - ((attributes & BACKGROUND_RED )?FOREGROUND_RED :0) | - ((attributes & BACKGROUND_INTENSITY)?FOREGROUND_INTENSITY:0) | - 0; - new_attributes = (attributes & ~color_mask) | (new_attributes & color_mask); - - SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),new_attributes); - return 0; -} - const char *Process::ResetColor() { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), defaultColors()); return 0; |