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/test | |
| 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/test')
| -rw-r--r-- | llvm/test/DebugInfo/PDB/pdbdump-headers.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/PDB/pdbdump-headers.test b/llvm/test/DebugInfo/PDB/pdbdump-headers.test index 136e4005ef9..902dae9f941 100644 --- a/llvm/test/DebugInfo/PDB/pdbdump-headers.test +++ b/llvm/test/DebugInfo/PDB/pdbdump-headers.test @@ -332,7 +332,7 @@ ; EMPTY-NEXT: ] ; EMPTY-NEXT: LineInfo [ ; EMPTY-NEXT: Lines { -; EMPTY-NEXT: FileOffset: 0 +; EMPTY-NEXT: FileName: d:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp ; EMPTY-NEXT: Line { ; EMPTY-NEXT: Offset: 0 ; EMPTY-NEXT: LineNumberStart: 5 @@ -354,7 +354,7 @@ ; EMPTY-NEXT: } ; EMPTY-NEXT: FileChecksums { ; EMPTY-NEXT: Checksum { -; EMPTY-NEXT: FileNameOffset: 86 +; EMPTY-NEXT: FileName: d:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp ; EMPTY-NEXT: Kind: MD5 (0x1) ; EMPTY-NEXT: Checksum ( ; EMPTY-NEXT: 0000: A0A5BD0D 3ECD93FC 29D19DE8 26FBF4BC |....>...)...&...| |

