[llvm-dwarfdump] - Print an error message if section decompression failed.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 5 May 2017 10:52:39 +0000 (10:52 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 5 May 2017 10:52:39 +0000 (10:52 +0000)
commit2122ff64c6ef776d37592a7fc3f4029cdef46fe2
treec63542fbf9e5ca7f96a212b629a1a864f8bee494
parent3559f20f17f7fa85a9b6c1d7dc8be3b3b6103d81
[llvm-dwarfdump] - Print an error message if section decompression failed.

llvm-dwarfdump currently prints no message if decompression fails
for some reason. I noticed that during work on one of LLD patches
where LLD produced an broken output. It was a bit confusing to see
no output for section dumped and no any error message at all.

Patch adds error message for such cases.

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

llvm-svn: 302221
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/test/DebugInfo/Inputs/dwarfdump-decompression-error.elf-x86-64 [new file with mode: 0644]
llvm/test/DebugInfo/dwarfdump-decompression-error.test [new file with mode: 0644]