]> granicus.if.org Git - llvm/commit
[codeview] Remove Type member from CVRecord
authorReid Kleckner <rnk@google.com>
Thu, 4 Apr 2019 00:28:48 +0000 (00:28 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 4 Apr 2019 00:28:48 +0000 (00:28 +0000)
commit27775cd11be1b806dd621834432edc66f6298076
tree07ab4cf7c828d252a9934c3ac186ca61f89f41f7
parentc89c2803c3199415f050a2e37b02a1a518df5984
[codeview] Remove Type member from CVRecord

Summary:
Now CVType and CVSymbol are effectively type-safe wrappers around
ArrayRef<uint8_t>. Make the kind() accessor load it from the
RecordPrefix, which is the same for types and symbols.

Reviewers: zturner, aganea

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357658 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
include/llvm/DebugInfo/CodeView/CVRecord.h
include/llvm/DebugInfo/CodeView/RecordSerialization.h
include/llvm/DebugInfo/CodeView/SymbolSerializer.h
include/llvm/DebugInfo/CodeView/TypeDeserializer.h
lib/DebugInfo/CodeView/AppendingTypeTableBuilder.cpp
lib/DebugInfo/CodeView/CVSymbolVisitor.cpp
lib/DebugInfo/CodeView/CVTypeVisitor.cpp
lib/DebugInfo/CodeView/ContinuationRecordBuilder.cpp
lib/DebugInfo/CodeView/GlobalTypeTableBuilder.cpp
lib/DebugInfo/CodeView/MergingTypeTableBuilder.cpp
lib/DebugInfo/CodeView/SimpleTypeSerializer.cpp
lib/DebugInfo/CodeView/SymbolDumper.cpp
lib/DebugInfo/CodeView/TypeDumpVisitor.cpp
lib/DebugInfo/CodeView/TypeRecordMapping.cpp
lib/DebugInfo/CodeView/TypeTableCollection.cpp
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
lib/ObjectYAML/CodeViewYAMLSymbols.cpp
lib/ObjectYAML/CodeViewYAMLTypes.cpp
tools/llvm-pdbutil/MinimalSymbolDumper.cpp
tools/llvm-pdbutil/MinimalTypeDumper.cpp
unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp