[Support] Add optional prefix to convenience helpers in WithColor.
authorJonas Devlieghere <jonas@devlieghere.com>
Sat, 21 Apr 2018 21:36:11 +0000 (21:36 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Sat, 21 Apr 2018 21:36:11 +0000 (21:36 +0000)
commit0c1b29540ceb4886db2a866eb37c1459aba47c72
treeffbadd98aa3c13ba749b7f8f1f15110aa8753565
parent920802cc50c3c424980f86a65c2736f65aaf69a0
[Support] Add optional prefix to convenience helpers in WithColor.

Several tools prefix the error/warning/note output with the name of the
tool. One such tool is LLD for example. This commit adds as an optional
'Prefix' argument to the convenience helpers.

llvm-svn: 330526
llvm/include/llvm/Support/WithColor.h
llvm/lib/Support/WithColor.cpp