[llvm-link] Use WithColor for printing errors
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 18 Apr 2018 14:41:47 +0000 (14:41 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 18 Apr 2018 14:41:47 +0000 (14:41 +0000)
commitfef7adae1d5ed7aadc317515b7aefeaf7f5936b8
tree6fa21233936e29fcd9c5104c4706ebae1a2a7216
parent01e8c4e8c1883828cca1d358eb0475532260de1b
[llvm-link] Use WithColor for printing errors

Use convenience helpers in WithColor to print errors and warnings.

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

llvm-svn: 330261
llvm/test/Linker/apple-version.ll
llvm/test/Linker/datalayout.ll
llvm/test/Linker/drop-debug.ll
llvm/test/Linker/redefinition.ll
llvm/test/Linker/targettriple.ll
llvm/tools/llvm-link/llvm-link.cpp