OSDN Git Service

[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)
commit2219387eaf11f6306db9d32a42c3bdf477ec1b23
tree6cf0ee7e6ce161c974864f8532e5a35cb9745180
parent68c622048b67db7c4282cfe35a6cc6c750b866e0
[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`.

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