]> granicus.if.org Git - llvm/commit
[dwarfdump][NFC] Consistent errors and warnings with --verify
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 29 Sep 2017 09:33:31 +0000 (09:33 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 29 Sep 2017 09:33:31 +0000 (09:33 +0000)
commit553e12e54cd7c824d95eb97491691615861059ad
tree9e4947d68785f56a2dfcde26e5a00fe966d5d420
parent70d137c4effcce788deac177273f57f91eda37af
[dwarfdump][NFC] Consistent errors and warnings with --verify

This patch introduces 3 helper functions: error(), warn() and note() to
make printing  during verification more consistent. When supported, the
respective prefixes are printed in color using the same color scheme as
clang.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314498 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFVerifier.h
lib/DebugInfo/DWARF/DWARFVerifier.cpp
lib/DebugInfo/DWARF/SyntaxHighlighting.cpp
lib/DebugInfo/DWARF/SyntaxHighlighting.h
test/tools/llvm-dwarfdump/X86/apple_names_verify_form.s
test/tools/llvm-dwarfdump/X86/apple_names_verify_num_atoms.s
test/tools/llvm-dwarfdump/X86/verify_debug_abbrev.s
test/tools/llvm-dwarfdump/X86/verify_debug_info.s
test/tools/llvm-dwarfdump/X86/verify_unit_header_chain.s