[llvm] r272073 - [pdbdump] Print out TPI hash key size.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 16:44:27 PDT 2016
Author: ruiu
Date: Tue Jun 7 18:44:27 2016
New Revision: 272073
URL: http://llvm.org/viewvc/llvm-project?rev=272073&view=rev
Log:
[pdbdump] Print out TPI hash key size.
Modified:
llvm/trunk/include/llvm/DebugInfo/PDB/Raw/TpiStream.h
llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStream.cpp
llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test
llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp
Modified: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/TpiStream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/PDB/Raw/TpiStream.h?rev=272073&r1=272072&r2=272073&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/TpiStream.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/TpiStream.h Tue Jun 7 18:44:27 2016
@@ -43,6 +43,7 @@ public:
uint16_t getTypeHashStreamIndex() const;
uint16_t getTypeHashStreamAuxIndex() const;
+ uint32_t getHashKeySize() const;
codeview::FixedStreamArray<support::ulittle32_t> getHashValues() const;
codeview::FixedStreamArray<TypeIndexOffset> getTypeIndexOffsets() const;
codeview::FixedStreamArray<TypeIndexOffset> getHashAdjustments() const;
Modified: llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStream.cpp?rev=272073&r1=272072&r2=272073&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStream.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Raw/TpiStream.cpp Tue Jun 7 18:44:27 2016
@@ -153,6 +153,8 @@ uint16_t TpiStream::getTypeHashStreamAux
return Header->HashAuxStreamIndex;
}
+uint32_t TpiStream::getHashKeySize() const { return Header->HashKeySize; }
+
codeview::FixedStreamArray<support::ulittle32_t>
TpiStream::getHashValues() const {
return HashValues;
Modified: llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test?rev=272073&r1=272072&r2=272073&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test (original)
+++ llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test Tue Jun 7 18:44:27 2016
@@ -142,6 +142,7 @@
; EMPTY-NEXT: )
; EMPTY-NEXT: }
; EMPTY: Hash {
+; EMPTY-NEXT: Hash Key Size: 4
; EMPTY-NEXT: Values: [205956, 163561, 59811, 208239, 16377, 247078, 194342, 254156, 194536, 167492, 185421, 119540, 261871, 198119, 48056, 251486, 134580, 148190, 113636, 53336, 55779, 220695, 198114, 148734, 81128, 60158, 217249, 174209, 159978, 249504, 141941, 238785, 6214, 94935, 151449, 135589, 73373, 96512, 254299, 17744, 239514, 173189, 130544, 204437, 238560, 144673, 115151, 197306, 256035, 101096, 231280, 52156, 48854, 170035, 177041, 102745, 16947, 183703, 98548, 35693, 171328, 203640, 139292, 49018, 43821, 202555, 165040, 215835, 142625, 52534, 44186, 103930, 110942, 17991, 213215]
; EMPTY-NEXT: Type Index Offsets: [{4096, 0}]
; EMPTY-NEXT: Hash Adjustments: []
@@ -223,6 +224,7 @@
; EMPTY-NEXT: )
; EMPTY-NEXT: }
; EMPTY: Hash {
+; EMPTY-NEXT: Hash Key Size: 4
; EMPTY-NEXT: Values: [7186, 7198, 7180, 7191, 7201, 7241, 7249, 80727, 154177, 75189, 253662, 193467, 222705, 186099, 257108]
; EMPTY-NEXT: Type Index Offsets: [{4096, 0}]
; EMPTY-NEXT: Hash Adjustments: []
Modified: llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp?rev=272073&r1=272072&r2=272073&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp (original)
+++ llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp Tue Jun 7 18:44:27 2016
@@ -276,6 +276,7 @@ static void dumpTpiHash(ScopedPrinter &P
if (!opts::DumpTpiHash)
return;
DictScope DD(P, "Hash");
+ P.printNumber("Hash Key Size", Tpi.getHashKeySize());
codeview::FixedStreamArray<support::ulittle32_t> S = Tpi.getHashValues();
P.printList("Values", Tpi.getHashValues());
P.printList("Type Index Offsets", Tpi.getTypeIndexOffsets(),
More information about the llvm-commits
mailing list