mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
raw_ostream: Add a has_colors() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160558 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -651,6 +651,10 @@ bool raw_fd_ostream::is_displayed() const {
|
||||
return sys::Process::FileDescriptorIsDisplayed(FD);
|
||||
}
|
||||
|
||||
bool raw_fd_ostream::has_colors() const {
|
||||
return sys::Process::FileDescriptorHasColors(FD);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// outs(), errs(), nulls()
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user