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 | 23ee87bda0ca3740b1c020be9890ee55dfc8dbe4 (patch) | |
tree | 4da52e250a7adf79212712ec2d22b13c8a3c45e8 /llvm/lib/DebugInfo/PDB/PDB.cpp | |
parent | e0e87aff5cbaadccea2b91fa4011f199a3b14a07 (diff) | |
download | bcm5719-llvm-23ee87bda0ca3740b1c020be9890ee55dfc8dbe4.tar.gz bcm5719-llvm-23ee87bda0ca3740b1c020be9890ee55dfc8dbe4.zip |
[llvm-pdbdump] Print a better error message when PDB loading fails.
Differential Revision: http://reviews.llvm.org/D19234
llvm-svn: 266772
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDB.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/PDB.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDB.cpp b/llvm/lib/DebugInfo/PDB/PDB.cpp index 613407eb134..bb4094208e2 100644 --- a/llvm/lib/DebugInfo/PDB/PDB.cpp +++ b/llvm/lib/DebugInfo/PDB/PDB.cpp @@ -26,7 +26,7 @@ PDB_ErrorCode llvm::loadDataForPDB(PDB_ReaderType Type, StringRef Path, #if HAVE_DIA_SDK return DIASession::createFromPdb(Path, Session); #endif - return PDB_ErrorCode::NoPdbImpl; + return PDB_ErrorCode::NoDiaSupport; } PDB_ErrorCode llvm::loadDataForEXE(PDB_ReaderType Type, StringRef Path, @@ -35,5 +35,5 @@ PDB_ErrorCode llvm::loadDataForEXE(PDB_ReaderType Type, StringRef Path, #if HAVE_DIA_SDK return DIASession::createFromExe(Path, Session); #endif - return PDB_ErrorCode::NoPdbImpl; + return PDB_ErrorCode::NoDiaSupport; } |