aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-06-16 14:47:23 +0000
committerRui Ueyama <ruiu@google.com>2016-06-16 14:47:23 +0000
commit43ed08efa30a9626bcddabad4bf78239c48d7f5d (patch)
treefa589da638ba6f9db7bfa96fae9debb302d774e1 /llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
parentb9095ae7eeb88a034762c801c0ada054fa38f5dc (diff)
downloadllvm-43ed08efa30a9626bcddabad4bf78239c48d7f5d.zip
llvm-43ed08efa30a9626bcddabad4bf78239c48d7f5d.tar.gz
llvm-43ed08efa30a9626bcddabad4bf78239c48d7f5d.tar.bz2
[codeview] Pass CVRecord to visitTypeBegin callback.
Both parameters to visitTypeBegin are actually members of CVRecord, so we can just pass CVRecord instead of destructuring it. Differential Revision: http://reviews.llvm.org/D21435 llvm-svn: 272899
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
index 5956a8b..99e5037 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/TpiStream.cpp
@@ -102,9 +102,7 @@ public:
void visitStruct(ClassRecord &Rec) { verify(Rec); }
void visitUnion(UnionRecord &Rec) { verify(Rec); }
- void visitTypeEnd(TypeLeafKind Leaf, ArrayRef<uint8_t> RecordData) {
- ++Index;
- }
+ void visitTypeEnd(const CVRecord<TypeLeafKind> &Record) { ++Index; }
private:
template <typename T> void verify(T &Rec) {