[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)
commite09af84db50570b56379bfef95d37ceaf6674c16
tree246b3e86d262c02cdae83ef9b5f061a3747b264c
parentce770dda2cd5c629e67bd90889481a2c8c48d43a
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230868 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/DIA/DIASession.h
include/llvm/DebugInfo/PDB/PDB.h
include/llvm/DebugInfo/PDB/PDBTypes.h
lib/DebugInfo/PDB/DIA/DIASession.cpp
lib/DebugInfo/PDB/PDB.cpp
tools/llvm-pdbdump/llvm-pdbdump.cpp