[llvm-pdbdump] Better error handling.
authorZachary Turner <zturner@google.com>
Sat, 28 Feb 2015 20:23:18 +0000 (20:23 +0000)
committerZachary Turner <zturner@google.com>
Sat, 28 Feb 2015 20:23:18 +0000 (20:23 +0000)
commitccf04159732d5da1430a44a96f0211f05ba7cf9e
tree00ed7d60fdbaa5dc56ae919a52d9ddd87c8aec7f
parent66d4c6e78cef2aad52b7a0344a5afc073c638ca9
[llvm-pdbdump] Better error handling.

Previously it was impossible to distinguish between "There is
no PDB implementation for this platform" and "I tried to load
the PDB, but couldn't find the file", making it hard to figure
out if you built llvm-pdbdump incorrectly or if you just mistyped
a file name.

This patch adds proper error handling so that we can know exactly
what went wrong.

llvm-svn: 230868
llvm/include/llvm/DebugInfo/PDB/DIA/DIASession.h
llvm/include/llvm/DebugInfo/PDB/PDB.h
llvm/include/llvm/DebugInfo/PDB/PDBTypes.h
llvm/lib/DebugInfo/PDB/DIA/DIASession.cpp
llvm/lib/DebugInfo/PDB/PDB.cpp
llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp