diff options
| author | Reid Kleckner <rnk@google.com> | 2016-05-17 16:20:35 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2016-05-17 16:20:35 +0000 |
| commit | fcc55505448be251f986add26ef069db6c99da56 (patch) | |
| tree | 258f7bda1d8767ef34e70fc852c6f59471d34db5 /llvm/lib/DebugInfo/CodeView | |
| parent | ad66eaec2c30bf3387bb9fdd5d4e30cb9162eaf7 (diff) | |
| download | bcm5719-llvm-fcc55505448be251f986add26ef069db6c99da56.tar.gz bcm5719-llvm-fcc55505448be251f986add26ef069db6c99da56.zip | |
[codeview] Test serialization of all known type records
This just checks that we emit all type records once, and then after
merging the type stream with no other type streams, we still emit every
kind of type record.
We could test the dumper output more closely, but that would make the
test very brittle. Currently we're just getting coverage.
llvm-svn: 269778
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView')
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp b/llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp index 5ee7cb17000..88211d0af95 100644 --- a/llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp +++ b/llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp @@ -111,14 +111,14 @@ void TypeStreamMerger::visitFieldList(TypeLeafKind Leaf, #define TYPE_RECORD(EnumName, EnumVal, Name) \ void TypeStreamMerger::visit##Name(TypeLeafKind LeafType, \ Name##Record &Record) { \ - FoundBadTypeIndex |= !Record.remapTypeIndices(IndexMap); \ + FoundBadTypeIndex |= !Record.remapTypeIndices(IndexMap); \ IndexMap.push_back(DestStream.write##Name(Record)); \ } #define TYPE_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName) #define MEMBER_RECORD(EnumName, EnumVal, Name) \ void TypeStreamMerger::visit##Name(TypeLeafKind LeafType, \ Name##Record &Record) { \ - FoundBadTypeIndex |= !Record.remapTypeIndices(IndexMap); \ + FoundBadTypeIndex |= !Record.remapTypeIndices(IndexMap); \ FieldBuilder.write##Name(Record); \ } #define MEMBER_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName) |

