[Support] Move syntax highlighting into support
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 9 Mar 2018 09:56:24 +0000 (09:56 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 9 Mar 2018 09:56:24 +0000 (09:56 +0000)
commit692175399453d70083772033e13a11e408576327
treec1fd3ec2396abe683376a359cb6205aab618acb7
parentccac66da83ee2bbb1fdccea875cf3cfb441554e7
[Support] Move syntax highlighting into support

Move the DWARF syntax highlighting into support. This has several
advantages, most notably that this makes the WithColor RAII wrapper
available outside libDebugInfo. Furthermore, several projects all have
their own code for handling colored output. This provides a place to
centralize it.

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

llvm-svn: 327108
llvm/include/llvm/Support/WithColor.h [moved from llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h with 62% similarity]
llvm/lib/DebugInfo/DWARF/CMakeLists.txt
llvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp
llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.cpp [deleted file]
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/WithColor.cpp [new file with mode: 0644]