aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-06-02 21:13:47 +0000
committerRui Ueyama <ruiu@google.com>2016-06-02 21:13:47 +0000
commit0350bf096657ba62acba11c6ccd7a467b9750a86 (patch)
tree8b4ae5fef4c4b181d454cbc7b9771331156e8e07 /llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
parentd9804bb696bc1d6a64551b67e0a55abd222f1e86 (diff)
downloadllvm-0350bf096657ba62acba11c6ccd7a467b9750a86.zip
llvm-0350bf096657ba62acba11c6ccd7a467b9750a86.tar.gz
llvm-0350bf096657ba62acba11c6ccd7a467b9750a86.tar.bz2
Add comments.
llvm-svn: 271597
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
index 28c3d64..74a0427 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
@@ -35,6 +35,7 @@ static uint32_t HashBufferV8(uint8_t *buffer, uint32_t NumBuckets) {
return 0;
}
+// This corresponds to `HDR` in PDB/dbi/tpi.h.
struct TpiStream::HeaderInfo {
struct EmbeddedBuf {
little32_t Off;
@@ -47,6 +48,7 @@ struct TpiStream::HeaderInfo {
ulittle32_t TypeIndexEnd;
ulittle32_t TypeRecordBytes;
+ // The following members correspond to `TpiHash` in PDB/dbi/tpi.h.
ulittle16_t HashStreamIndex;
ulittle16_t HashAuxStreamIndex;
ulittle32_t HashKeySize;