HomePhabricator

[Support] Move color handling from raw_fd_ostream to raw_ostream

Authored by JDevlieghere on Jun 8 2020, 8:47 AM.

Description

[Support] Move color handling from raw_fd_ostream to raw_ostream

Move the color handling code from raw_fd_ostream to raw_ostream. This
makes it possible to use colors with any ostream when enabled. The
existing behavior where only raw_fd_ostream supports colors by default
remains unchanged.

Differential revision: https://reviews.llvm.org/D81110