[PDB] Partial resubmit of r296215, which improved PDB Stream Library.
authorZachary Turner <zturner@google.com>
Mon, 27 Feb 2017 22:11:43 +0000 (22:11 +0000)
committerZachary Turner <zturner@google.com>
Mon, 27 Feb 2017 22:11:43 +0000 (22:11 +0000)
commit120faca41bddd3a5922bdefbeb7c68908fda9ab9
treee3c36b67c61a5021ed8847241cfaf9c59b48309a
parent4a7cc16e89b68d48335e7cd19837c3e67e12afb2
[PDB] Partial resubmit of r296215, which improved PDB Stream Library.

This was reverted because it was breaking some builds, and
because of incorrect error code usage.  Since the CL was
large and contained many different things, I'm resubmitting
it in pieces.

This portion is NFC, and consists of:

1) Renaming classes to follow a consistent naming convention.
2) Fixing the const-ness of the interface methods.
3) Adding detailed doxygen comments.
4) Fixing a few instances of passing `const BinaryStream& X`.  These
   are now passed as `BinaryStreamRef X`.

llvm-svn: 296394
76 files changed:
lld/COFF/PDB.cpp
llvm/include/llvm/DebugInfo/CodeView/CVRecord.h
llvm/include/llvm/DebugInfo/CodeView/CVTypeVisitor.h
llvm/include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
llvm/include/llvm/DebugInfo/CodeView/ModuleSubstream.h
llvm/include/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h
llvm/include/llvm/DebugInfo/CodeView/RecordSerialization.h
llvm/include/llvm/DebugInfo/CodeView/SymbolDeserializer.h
llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h
llvm/include/llvm/DebugInfo/CodeView/SymbolRecordMapping.h
llvm/include/llvm/DebugInfo/CodeView/SymbolSerializer.h
llvm/include/llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h
llvm/include/llvm/DebugInfo/CodeView/TypeDeserializer.h
llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h
llvm/include/llvm/DebugInfo/CodeView/TypeRecordMapping.h
llvm/include/llvm/DebugInfo/CodeView/TypeSerializer.h
llvm/include/llvm/DebugInfo/MSF/BinaryByteStream.h
llvm/include/llvm/DebugInfo/MSF/BinaryItemStream.h
llvm/include/llvm/DebugInfo/MSF/BinaryStream.h
llvm/include/llvm/DebugInfo/MSF/BinaryStreamArray.h
llvm/include/llvm/DebugInfo/MSF/BinaryStreamReader.h
llvm/include/llvm/DebugInfo/MSF/BinaryStreamRef.h
llvm/include/llvm/DebugInfo/MSF/BinaryStreamWriter.h
llvm/include/llvm/DebugInfo/MSF/MappedBlockStream.h
llvm/include/llvm/DebugInfo/PDB/Native/DbiStream.h
llvm/include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h
llvm/include/llvm/DebugInfo/PDB/Native/GlobalsStream.h
llvm/include/llvm/DebugInfo/PDB/Native/HashTable.h
llvm/include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
llvm/include/llvm/DebugInfo/PDB/Native/ModInfo.h
llvm/include/llvm/DebugInfo/PDB/Native/ModStream.h
llvm/include/llvm/DebugInfo/PDB/Native/NamedStreamMap.h
llvm/include/llvm/DebugInfo/PDB/Native/PDBFile.h
llvm/include/llvm/DebugInfo/PDB/Native/PublicsStream.h
llvm/include/llvm/DebugInfo/PDB/Native/StringTable.h
llvm/include/llvm/DebugInfo/PDB/Native/StringTableBuilder.h
llvm/include/llvm/DebugInfo/PDB/Native/TpiHashing.h
llvm/include/llvm/DebugInfo/PDB/Native/TpiStream.h
llvm/include/llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/DebugInfo/CodeView/CVTypeDumper.cpp
llvm/lib/DebugInfo/CodeView/CVTypeVisitor.cpp
llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp
llvm/lib/DebugInfo/CodeView/ModuleSubstreamVisitor.cpp
llvm/lib/DebugInfo/CodeView/RecordSerialization.cpp
llvm/lib/DebugInfo/CodeView/TypeSerializer.cpp
llvm/lib/DebugInfo/MSF/BinaryStreamReader.cpp
llvm/lib/DebugInfo/MSF/BinaryStreamWriter.cpp
llvm/lib/DebugInfo/MSF/MappedBlockStream.cpp
llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp
llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp
llvm/lib/DebugInfo/PDB/Native/GSI.cpp
llvm/lib/DebugInfo/PDB/Native/GSI.h
llvm/lib/DebugInfo/PDB/Native/GlobalsStream.cpp
llvm/lib/DebugInfo/PDB/Native/HashTable.cpp
llvm/lib/DebugInfo/PDB/Native/InfoStream.cpp
llvm/lib/DebugInfo/PDB/Native/InfoStreamBuilder.cpp
llvm/lib/DebugInfo/PDB/Native/ModInfo.cpp
llvm/lib/DebugInfo/PDB/Native/ModStream.cpp
llvm/lib/DebugInfo/PDB/Native/NamedStreamMap.cpp
llvm/lib/DebugInfo/PDB/Native/PDBFile.cpp
llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
llvm/lib/DebugInfo/PDB/Native/PublicsStream.cpp
llvm/lib/DebugInfo/PDB/Native/StringTable.cpp
llvm/lib/DebugInfo/PDB/Native/StringTableBuilder.cpp
llvm/lib/DebugInfo/PDB/Native/SymbolStream.cpp
llvm/lib/DebugInfo/PDB/Native/TpiStream.cpp
llvm/lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp
llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp
llvm/tools/llvm-pdbdump/YamlTypeDumper.cpp
llvm/tools/llvm-pdbdump/fuzzer/llvm-pdbdump-fuzzer.cpp
llvm/tools/llvm-readobj/COFFDumper.cpp
llvm/unittests/DebugInfo/PDB/HashTableTest.cpp
llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
llvm/unittests/DebugInfo/PDB/StringTableBuilderTest.cpp