[dsymutil] Unify error handling and add color
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 9 Mar 2018 15:22:42 +0000 (15:22 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 9 Mar 2018 15:22:42 +0000 (15:22 +0000)
commit1dd69783bb88d18537558039cf2804fa5daab70e
treeffc8a3883676573df82f49e8b8384a9dba094aec
parent21dab12453d2e9bb222820002890cdd653c59b5f
[dsymutil] Unify error handling and add color

We improved the handling of errors and warnings in dwarfdump's verifier
in rL314498. This patch does the same thing for dsymutil.

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

llvm-svn: 327137
llvm/test/tools/dsymutil/X86/module-warnings.test
llvm/test/tools/dsymutil/X86/swift-ast-x86_64.test
llvm/tools/dsymutil/DwarfLinker.cpp
llvm/tools/dsymutil/dsymutil.h