diff options
author | Zachary Turner <zturner@google.com> | 2016-04-19 17:36:58 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-04-19 17:36:58 +0000 |
commit | 67622ea1d0cfc3842b1a6eefd332fbc89611068a (patch) | |
tree | 2ca0984a5a9ba37377cb60e32de700bc84d30a8b /tools | |
parent | 80e5a5716b272c0ba61ecde13cffc548f7383c7e (diff) |
[llvm-pdbdump] Print a better error message when PDB loading fails.
Differential Revision: http://reviews.llvm.org/D19234
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-pdbdump/llvm-pdbdump.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/llvm-pdbdump/llvm-pdbdump.cpp b/tools/llvm-pdbdump/llvm-pdbdump.cpp index 940ef1b6399..7418cff511e 100644 --- a/tools/llvm-pdbdump/llvm-pdbdump.cpp +++ b/tools/llvm-pdbdump/llvm-pdbdump.cpp @@ -624,8 +624,14 @@ static void dumpInput(StringRef Path) { switch (Error) { case PDB_ErrorCode::Success: break; - case PDB_ErrorCode::NoPdbImpl: - outs() << "Reading PDBs is not supported on this platform.\n"; + case PDB_ErrorCode::NoDiaSupport: + outs() << "LLVM was not compiled with support for DIA. This usually means " + "that either LLVM was not compiled with MSVC, or your MSVC " + "installation is corrupt.\n"; + return; + case PDB_ErrorCode::CouldNotCreateImpl: + outs() << "Failed to connect to DIA at runtime. Verify that Visual Studio " + "is properly installed, or that msdiaXX.dll is in your PATH.\n"; return; case PDB_ErrorCode::InvalidPath: outs() << "Unable to load PDB at '" << Path |