aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/GenericError.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-07-13 20:12:23 +0000
committerReid Kleckner <rnk@google.com>2017-07-13 20:12:23 +0000
commit6597c28d769c951720d6aef4851babd38f5c3f06 (patch)
tree49fbd05a5899f58c975dfc7e0a9e510aa307b84b /llvm/lib/DebugInfo/PDB/GenericError.cpp
parentf0c652a52e705a8dc43e350d4990f4acbffc1781 (diff)
downloadllvm-6597c28d769c951720d6aef4851babd38f5c3f06.zip
llvm-6597c28d769c951720d6aef4851babd38f5c3f06.tar.gz
llvm-6597c28d769c951720d6aef4851babd38f5c3f06.tar.bz2
[PDB] Fix type server handling for archives
Summary: This fixes type indices for SDK or CRT static archives. Previously we'd try to look next to the archive object file path, which would not exist on the local machine. Also error out if we can't resolve a type server record. Hypothetically we can recover from this error by discarding debug info for this object, but that is not yet implemented. Reviewers: ruiu, amccarth Subscribers: aprantl, hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D35369 llvm-svn: 307946
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/GenericError.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/GenericError.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/GenericError.cpp b/llvm/lib/DebugInfo/PDB/GenericError.cpp
index 789f3b8..4fcecb9 100644
--- a/llvm/lib/DebugInfo/PDB/GenericError.cpp
+++ b/llvm/lib/DebugInfo/PDB/GenericError.cpp
@@ -26,6 +26,8 @@ public:
switch (static_cast<generic_error_code>(Condition)) {
case generic_error_code::unspecified:
return "An unknown error has occurred.";
+ case generic_error_code::type_server_not_found:
+ return "Type server PDB was not found.";
case generic_error_code::dia_sdk_not_present:
return "LLVM was not compiled with support for DIA. This usually means "
"that you are are not using MSVC, or your Visual Studio "