Give InfoStreamBuilder an opt-in method to write a hash of the PDB as GUID.
authorNico Weber <nicolasweber@gmx.de>
Sat, 15 Sep 2018 18:35:51 +0000 (18:35 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sat, 15 Sep 2018 18:35:51 +0000 (18:35 +0000)
commit205ca68b8db35f3f6037aac8006d8cf29be2701a
treecd3c7944eb23bd882e411b6de390d65d2f700d9e
parentda15acbd68cb9c60aef5a4e51a5383641c65147d
Give InfoStreamBuilder an opt-in method to write a hash of the PDB as GUID.

Naively computing the hash after the PDB data has been generated is in practice
as fast as other approaches I tried. I also tried online-computing the hash as
parts of the PDB were written out (https://reviews.llvm.org/D51887; that's also
where all the measuring data is) and computing the hash in parallel
(https://reviews.llvm.org/D51957). This approach here is simplest, without
being slower.

Differential Revision: https://reviews.llvm.org/D51956

llvm-svn: 342333
llvm/include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
llvm/include/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h
llvm/lib/DebugInfo/PDB/Native/InfoStreamBuilder.cpp
llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp