[DWARF] Refactor callback usage for .debug_line error handling
authorJames Henderson <jh7370@my.bristol.ac.uk>
Mon, 21 May 2018 15:30:54 +0000 (15:30 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Mon, 21 May 2018 15:30:54 +0000 (15:30 +0000)
commit004b729ed1487057295df1e9b13456201dad244c
tree8bfd7b439452c2f7c8274d1bd4d5ea350a0f96f0
parenta8869e68a9ace4f1c6fe8075d47172803516f170
[DWARF] Refactor callback usage for .debug_line error handling

Change the "recoverable" error callback to take an Error instaed of a
string.

Reviewed by: JDevlieghere

Differential Revision: https://reviews.llvm.org/D46831

llvm-svn: 332845
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/tools/dsymutil/DwarfLinker.cpp
llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp