diff options
author | Zachary Turner <zturner@google.com> | 2016-06-03 05:52:57 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-06-03 05:52:57 +0000 |
commit | 3df1bfaaec1c70c6501f01868bcd81764c9582e9 (patch) | |
tree | b1451ece7ed3236beda44a10c3e9f514decd66dd /llvm/lib/DebugInfo/PDB/Raw/RawError.cpp | |
parent | e7ae106147bfa93390e1b275829c93cc60712aa4 (diff) | |
download | bcm5719-llvm-3df1bfaaec1c70c6501f01868bcd81764c9582e9.tar.gz bcm5719-llvm-3df1bfaaec1c70c6501f01868bcd81764c9582e9.zip |
[pdb] Print out file names instead of file offsets.
When printing line information and file checksums, we were printing
the file offset field from the struct header. This teaches
llvm-pdbdump how to turn those numbers into the filename. In the
case of file checksums, this is done by looking in the global
string table. In the case of line contributions, this is done
by indexing into the file names buffer of the DBI stream. Why
they use a different technique I don't know.
llvm-svn: 271630
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/RawError.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/RawError.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp b/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp index 037a1aab4b1..bcfa55a8b01 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp @@ -24,6 +24,10 @@ public: case raw_error_code::insufficient_buffer: return "The buffer is not large enough to read the requested number of " "bytes."; + case raw_error_code::no_stream: + return "The specified stream could not be loaded."; + case raw_error_code::index_out_of_bounds: + return "The specified item does not exist in the array."; } llvm_unreachable("Unrecognized raw_error_code"); } |