OSDN Git Service

[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)
commit01d72e5767f13075858ae575cb5319a36ceb2205
treeac803efda376c87e679672ef38cee53899c8837a
parented70dc4de2b23080323aa4df7133e5b397e763e3
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327108 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/WithColor.h [moved from lib/DebugInfo/DWARF/SyntaxHighlighting.h with 62% similarity]
lib/DebugInfo/DWARF/CMakeLists.txt
lib/DebugInfo/DWARF/DWARFDebugMacro.cpp
lib/DebugInfo/DWARF/DWARFDie.cpp
lib/DebugInfo/DWARF/DWARFFormValue.cpp
lib/DebugInfo/DWARF/DWARFVerifier.cpp
lib/DebugInfo/DWARF/SyntaxHighlighting.cpp [deleted file]
lib/Support/CMakeLists.txt
lib/Support/WithColor.cpp [new file with mode: 0644]