libDebugInfo: Refactor error handling in range list parsing
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 22 Dec 2018 00:31:02 +0000 (00:31 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 22 Dec 2018 00:31:02 +0000 (00:31 +0000)
commit219c6bd388725e5b302a90b6dae75d4100285356
treee1e75fc7a0a30edf3f29f6b6c8e0f0a30228988f
parentc3bedd056467ef110eb30461fdf1286660504989
libDebugInfo: Refactor error handling in range list parsing

Propagate the llvm::Error a little further up. This is NFC for
llvm-dwarfdump in this change, but allows ld.lld to emit more precise
error messages about which object and archive the erroneous DWARF is in.

llvm-svn: 349978
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp