summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-04-16 08:56:50 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-04-16 08:56:50 +0000
commit13d16f3bf3f9097ed30f411f90397372c73e664b (patch)
tree9869cf79469e6b4daa4347b182af3ff57ffd0c69 /llvm/lib/Support/Unix
parentf08a5a45fb991b1c1ec59922acf98f5a67be2d20 (diff)
downloadbcm5719-llvm-13d16f3bf3f9097ed30f411f90397372c73e664b.tar.gz
bcm5719-llvm-13d16f3bf3f9097ed30f411f90397372c73e664b.zip
Reapply 'Add reverseColor to raw_ostream'.
To be used in printing unprintable source in clang diagnostics. Patch by Seth Cantrell, with a minor fix for mingw by me. llvm-svn: 154805
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Process.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc
index 2d7fd384e8b..f640462a451 100644
--- a/llvm/lib/Support/Unix/Process.inc
+++ b/llvm/lib/Support/Unix/Process.inc
@@ -290,6 +290,10 @@ const char *Process::OutputBold(bool bg) {
return "\033[1m";
}
+const char *Process::OutputReverse() {
+ return "\033[7m";
+}
+
const char *Process::ResetColor() {
return "\033[0m";
}
OpenPOWER on IntegriCloud