Coverage Report

Created: 2019-02-23 12:57

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/include/llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h
Line
Count
Source (jump to first uncovered line)
1
//===- TypeVisitorCallbackPipeline.h ----------------------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLVM_DEBUGINFO_CODEVIEW_TYPEVISITORCALLBACKPIPELINE_H
10
#define LLVM_DEBUGINFO_CODEVIEW_TYPEVISITORCALLBACKPIPELINE_H
11
12
#include "llvm/DebugInfo/CodeView/CodeView.h"
13
#include "llvm/DebugInfo/CodeView/TypeRecord.h"
14
#include "llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h"
15
#include "llvm/Support/Error.h"
16
#include <vector>
17
18
namespace llvm {
19
namespace codeview {
20
21
class TypeVisitorCallbackPipeline : public TypeVisitorCallbacks {
22
public:
23
5.82k
  TypeVisitorCallbackPipeline() = default;
24
25
0
  Error visitUnknownType(CVRecord<TypeLeafKind> &Record) override {
26
0
    for (auto Visitor : Pipeline) {
27
0
      if (auto EC = Visitor->visitUnknownType(Record))
28
0
        return EC;
29
0
    }
30
0
    return Error::success();
31
0
  }
32
33
90
  Error visitUnknownMember(CVMemberRecord &Record) override {
34
180
    for (auto Visitor : Pipeline) {
35
180
      if (auto EC = Visitor->visitUnknownMember(Record))
36
0
        return EC;
37
180
    }
38
90
    return Error::success();
39
90
  }
40
41
0
  Error visitTypeBegin(CVType &Record) override {
42
0
    for (auto Visitor : Pipeline) {
43
0
      if (auto EC = Visitor->visitTypeBegin(Record))
44
0
        return EC;
45
0
    }
46
0
    return Error::success();
47
0
  }
48
49
11.4k
  Error visitTypeBegin(CVType &Record, TypeIndex Index) override {
50
22.9k
    for (auto Visitor : Pipeline) {
51
22.9k
      if (auto EC = Visitor->visitTypeBegin(Record, Index))
52
0
        return EC;
53
22.9k
    }
54
11.4k
    return Error::success();
55
11.4k
  }
56
57
11.4k
  Error visitTypeEnd(CVType &Record) override {
58
22.9k
    for (auto Visitor : Pipeline) {
59
22.9k
      if (auto EC = Visitor->visitTypeEnd(Record))
60
0
        return EC;
61
22.9k
    }
62
11.4k
    return Error::success();
63
11.4k
  }
64
65
10.3k
  Error visitMemberBegin(CVMemberRecord &Record) override {
66
20.6k
    for (auto Visitor : Pipeline) {
67
20.6k
      if (auto EC = Visitor->visitMemberBegin(Record))
68
0
        return EC;
69
20.6k
    }
70
10.3k
    return Error::success();
71
10.3k
  }
72
73
10.3k
  Error visitMemberEnd(CVMemberRecord &Record) override {
74
20.6k
    for (auto Visitor : Pipeline) {
75
20.6k
      if (auto EC = Visitor->visitMemberEnd(Record))
76
0
        return EC;
77
20.6k
    }
78
10.3k
    return Error::success();
79
10.3k
  }
80
81
11.6k
  void addCallbackToPipeline(TypeVisitorCallbacks &Callbacks) {
82
11.6k
    Pipeline.push_back(&Callbacks);
83
11.6k
  }
84
85
#define TYPE_RECORD(EnumName, EnumVal, Name)                                   \
86
11.4k
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
11.4k
    return visitKnownRecordImpl(CVR, Record);                                  \
88
11.4k
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::PointerRecord&)
Line
Count
Source
86
1.46k
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
1.46k
    return visitKnownRecordImpl(CVR, Record);                                  \
88
1.46k
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ModifierRecord&)
Line
Count
Source
86
227
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
227
    return visitKnownRecordImpl(CVR, Record);                                  \
88
227
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ProcedureRecord&)
Line
Count
Source
86
481
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
481
    return visitKnownRecordImpl(CVR, Record);                                  \
88
481
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::MemberFunctionRecord&)
Line
Count
Source
86
1.54k
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
1.54k
    return visitKnownRecordImpl(CVR, Record);                                  \
88
1.54k
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::LabelRecord&)
Line
Count
Source
86
1
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
1
    return visitKnownRecordImpl(CVR, Record);                                  \
88
1
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ArgListRecord&)
Line
Count
Source
86
856
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
856
    return visitKnownRecordImpl(CVR, Record);                                  \
88
856
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::FieldListRecord&)
Line
Count
Source
86
1.32k
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
1.32k
    return visitKnownRecordImpl(CVR, Record);                                  \
88
1.32k
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ArrayRecord&)
Line
Count
Source
86
92
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
92
    return visitKnownRecordImpl(CVR, Record);                                  \
88
92
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ClassRecord&)
Line
Count
Source
86
2.25k
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
2.25k
    return visitKnownRecordImpl(CVR, Record);                                  \
88
2.25k
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::UnionRecord&)
Line
Count
Source
86
39
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
39
    return visitKnownRecordImpl(CVR, Record);                                  \
88
39
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::EnumRecord&)
Line
Count
Source
86
256
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
256
    return visitKnownRecordImpl(CVR, Record);                                  \
88
256
  }
Unexecuted instantiation: llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::TypeServer2Record&)
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::VFTableRecord&)
Line
Count
Source
86
11
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
11
    return visitKnownRecordImpl(CVR, Record);                                  \
88
11
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::VFTableShapeRecord&)
Line
Count
Source
86
38
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
38
    return visitKnownRecordImpl(CVR, Record);                                  \
88
38
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::BitFieldRecord&)
Line
Count
Source
86
18
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
18
    return visitKnownRecordImpl(CVR, Record);                                  \
88
18
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::FuncIdRecord&)
Line
Count
Source
86
481
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
481
    return visitKnownRecordImpl(CVR, Record);                                  \
88
481
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::MemberFuncIdRecord&)
Line
Count
Source
86
112
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
112
    return visitKnownRecordImpl(CVR, Record);                                  \
88
112
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::BuildInfoRecord&)
Line
Count
Source
86
274
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
274
    return visitKnownRecordImpl(CVR, Record);                                  \
88
274
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::StringListRecord&)
Line
Count
Source
86
48
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
48
    return visitKnownRecordImpl(CVR, Record);                                  \
88
48
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::StringIdRecord&)
Line
Count
Source
86
1.07k
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
1.07k
    return visitKnownRecordImpl(CVR, Record);                                  \
88
1.07k
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::UdtSourceLineRecord&)
Line
Count
Source
86
561
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
561
    return visitKnownRecordImpl(CVR, Record);                                  \
88
561
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::UdtModSourceLineRecord&)
Line
Count
Source
86
8
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
8
    return visitKnownRecordImpl(CVR, Record);                                  \
88
8
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::MethodOverloadListRecord&)
Line
Count
Source
86
327
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
327
    return visitKnownRecordImpl(CVR, Record);                                  \
88
327
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::PrecompRecord&)
Line
Count
Source
86
2
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
2
    return visitKnownRecordImpl(CVR, Record);                                  \
88
2
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::EndPrecompRecord&)
Line
Count
Source
86
2
  Error visitKnownRecord(CVType &CVR, Name##Record &Record) override {         \
87
2
    return visitKnownRecordImpl(CVR, Record);                                  \
88
2
  }
89
#define MEMBER_RECORD(EnumName, EnumVal, Name)                                 \
90
  Error visitKnownMember(CVMemberRecord &CVMR, Name##Record &Record)           \
91
10.2k
      override {                                                               \
92
10.2k
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
10.2k
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::BaseClassRecord&)
Line
Count
Source
91
27
      override {                                                               \
92
27
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
27
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::VirtualBaseClassRecord&)
Line
Count
Source
91
21
      override {                                                               \
92
21
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
21
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::VFPtrRecord&)
Line
Count
Source
91
19
      override {                                                               \
92
19
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
19
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::StaticDataMemberRecord&)
Line
Count
Source
91
196
      override {                                                               \
92
196
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
196
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::OverloadedMethodRecord&)
Line
Count
Source
91
318
      override {                                                               \
92
318
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
318
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::DataMemberRecord&)
Line
Count
Source
91
1.64k
      override {                                                               \
92
1.64k
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
1.64k
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::NestedTypeRecord&)
Line
Count
Source
91
207
      override {                                                               \
92
207
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
207
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::OneMethodRecord&)
Line
Count
Source
91
615
      override {                                                               \
92
615
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
615
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::EnumeratorRecord&)
Line
Count
Source
91
7.15k
      override {                                                               \
92
7.15k
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
7.15k
  }
llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMember(llvm::codeview::CVMemberRecord&, llvm::codeview::ListContinuationRecord&)
Line
Count
Source
91
4
      override {                                                               \
92
4
    return visitKnownMemberImpl(CVMR, Record);                                 \
93
4
  }
94
#define TYPE_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
95
#define MEMBER_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
96
#include "llvm/DebugInfo/CodeView/CodeViewTypes.def"
97
98
private:
99
11.4k
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
22.9k
    for (auto Visitor : Pipeline) {
101
22.9k
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
22.9k
    }
104
11.4k
    return Error::success();
105
11.4k
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::PointerRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::PointerRecord&)
Line
Count
Source
99
1.46k
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
2.92k
    for (auto Visitor : Pipeline) {
101
2.92k
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
2.92k
    }
104
1.46k
    return Error::success();
105
1.46k
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::ModifierRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ModifierRecord&)
Line
Count
Source
99
227
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
454
    for (auto Visitor : Pipeline) {
101
454
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
454
    }
104
227
    return Error::success();
105
227
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::ProcedureRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ProcedureRecord&)
Line
Count
Source
99
481
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
962
    for (auto Visitor : Pipeline) {
101
962
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
962
    }
104
481
    return Error::success();
105
481
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::MemberFunctionRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::MemberFunctionRecord&)
Line
Count
Source
99
1.54k
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
3.08k
    for (auto Visitor : Pipeline) {
101
3.08k
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
3.08k
    }
104
1.54k
    return Error::success();
105
1.54k
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::LabelRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::LabelRecord&)
Line
Count
Source
99
1
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
2
    for (auto Visitor : Pipeline) {
101
2
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
2
    }
104
1
    return Error::success();
105
1
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::ArgListRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ArgListRecord&)
Line
Count
Source
99
856
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
1.71k
    for (auto Visitor : Pipeline) {
101
1.71k
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
1.71k
    }
104
856
    return Error::success();
105
856
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::FieldListRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::FieldListRecord&)
Line
Count
Source
99
1.32k
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
2.65k
    for (auto Visitor : Pipeline) {
101
2.65k
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
2.65k
    }
104
1.32k
    return Error::success();
105
1.32k
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::ArrayRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ArrayRecord&)
Line
Count
Source
99
92
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
184
    for (auto Visitor : Pipeline) {
101
184
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
184
    }
104
92
    return Error::success();
105
92
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::ClassRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::ClassRecord&)
Line
Count
Source
99
2.25k
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
4.51k
    for (auto Visitor : Pipeline) {
101
4.51k
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
4.51k
    }
104
2.25k
    return Error::success();
105
2.25k
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::UnionRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::UnionRecord&)
Line
Count
Source
99
39
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
78
    for (auto Visitor : Pipeline) {
101
78
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
78
    }
104
39
    return Error::success();
105
39
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::EnumRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::EnumRecord&)
Line
Count
Source
99
256
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
512
    for (auto Visitor : Pipeline) {
101
512
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
512
    }
104
256
    return Error::success();
105
256
  }
Unexecuted instantiation: llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::TypeServer2Record>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::TypeServer2Record&)
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::VFTableRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::VFTableRecord&)
Line
Count
Source
99
11
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
22
    for (auto Visitor : Pipeline) {
101
22
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
22
    }
104
11
    return Error::success();
105
11
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::VFTableShapeRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::VFTableShapeRecord&)
Line
Count
Source
99
38
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
76
    for (auto Visitor : Pipeline) {
101
76
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
76
    }
104
38
    return Error::success();
105
38
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::BitFieldRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::BitFieldRecord&)
Line
Count
Source
99
18
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
36
    for (auto Visitor : Pipeline) {
101
36
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
36
    }
104
18
    return Error::success();
105
18
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::FuncIdRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::FuncIdRecord&)
Line
Count
Source
99
481
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
962
    for (auto Visitor : Pipeline) {
101
962
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
962
    }
104
481
    return Error::success();
105
481
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::MemberFuncIdRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::MemberFuncIdRecord&)
Line
Count
Source
99
112
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
224
    for (auto Visitor : Pipeline) {
101
224
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
224
    }
104
112
    return Error::success();
105
112
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::BuildInfoRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::BuildInfoRecord&)
Line
Count
Source
99
274
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
548
    for (auto Visitor : Pipeline) {
101
548
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
548
    }
104
274
    return Error::success();
105
274
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::StringListRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::StringListRecord&)
Line
Count
Source
99
48
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
96
    for (auto Visitor : Pipeline) {
101
96
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
96
    }
104
48
    return Error::success();
105
48
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::StringIdRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::StringIdRecord&)
Line
Count
Source
99
1.07k
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
2.15k
    for (auto Visitor : Pipeline) {
101
2.15k
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
2.15k
    }
104
1.07k
    return Error::success();
105
1.07k
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::UdtSourceLineRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::UdtSourceLineRecord&)
Line
Count
Source
99
561
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
1.12k
    for (auto Visitor : Pipeline) {
101
1.12k
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
1.12k
    }
104
561
    return Error::success();
105
561
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::UdtModSourceLineRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::UdtModSourceLineRecord&)
Line
Count
Source
99
8
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
16
    for (auto Visitor : Pipeline) {
101
16
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
16
    }
104
8
    return Error::success();
105
8
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::MethodOverloadListRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::MethodOverloadListRecord&)
Line
Count
Source
99
327
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
654
    for (auto Visitor : Pipeline) {
101
654
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
654
    }
104
327
    return Error::success();
105
327
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::PrecompRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::PrecompRecord&)
Line
Count
Source
99
2
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
4
    for (auto Visitor : Pipeline) {
101
4
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
4
    }
104
2
    return Error::success();
105
2
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownRecordImpl<llvm::codeview::EndPrecompRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::EndPrecompRecord&)
Line
Count
Source
99
2
  template <typename T> Error visitKnownRecordImpl(CVType &CVR, T &Record) {
100
4
    for (auto Visitor : Pipeline) {
101
4
      if (auto EC = Visitor->visitKnownRecord(CVR, Record))
102
0
        return EC;
103
4
    }
104
2
    return Error::success();
105
2
  }
106
107
  template <typename T>
108
10.2k
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
20.4k
    for (auto Visitor : Pipeline) {
110
20.4k
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
20.4k
    }
113
10.2k
    return Error::success();
114
10.2k
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::BaseClassRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::BaseClassRecord&)
Line
Count
Source
108
27
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
54
    for (auto Visitor : Pipeline) {
110
54
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
54
    }
113
27
    return Error::success();
114
27
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::VirtualBaseClassRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::VirtualBaseClassRecord&)
Line
Count
Source
108
21
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
42
    for (auto Visitor : Pipeline) {
110
42
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
42
    }
113
21
    return Error::success();
114
21
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::VFPtrRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::VFPtrRecord&)
Line
Count
Source
108
19
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
38
    for (auto Visitor : Pipeline) {
110
38
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
38
    }
113
19
    return Error::success();
114
19
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::StaticDataMemberRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::StaticDataMemberRecord&)
Line
Count
Source
108
196
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
392
    for (auto Visitor : Pipeline) {
110
392
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
392
    }
113
196
    return Error::success();
114
196
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::OverloadedMethodRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::OverloadedMethodRecord&)
Line
Count
Source
108
318
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
636
    for (auto Visitor : Pipeline) {
110
636
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
636
    }
113
318
    return Error::success();
114
318
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::DataMemberRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::DataMemberRecord&)
Line
Count
Source
108
1.64k
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
3.29k
    for (auto Visitor : Pipeline) {
110
3.29k
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
3.29k
    }
113
1.64k
    return Error::success();
114
1.64k
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::NestedTypeRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::NestedTypeRecord&)
Line
Count
Source
108
207
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
414
    for (auto Visitor : Pipeline) {
110
414
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
414
    }
113
207
    return Error::success();
114
207
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::OneMethodRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::OneMethodRecord&)
Line
Count
Source
108
615
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
1.23k
    for (auto Visitor : Pipeline) {
110
1.23k
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
1.23k
    }
113
615
    return Error::success();
114
615
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::EnumeratorRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::EnumeratorRecord&)
Line
Count
Source
108
7.15k
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
14.3k
    for (auto Visitor : Pipeline) {
110
14.3k
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
14.3k
    }
113
7.15k
    return Error::success();
114
7.15k
  }
llvm::Error llvm::codeview::TypeVisitorCallbackPipeline::visitKnownMemberImpl<llvm::codeview::ListContinuationRecord>(llvm::codeview::CVMemberRecord&, llvm::codeview::ListContinuationRecord&)
Line
Count
Source
108
4
  Error visitKnownMemberImpl(CVMemberRecord &CVMR, T &Record) {
109
8
    for (auto Visitor : Pipeline) {
110
8
      if (auto EC = Visitor->visitKnownMember(CVMR, Record))
111
0
        return EC;
112
8
    }
113
4
    return Error::success();
114
4
  }
115
  std::vector<TypeVisitorCallbacks *> Pipeline;
116
};
117
118
} // end namespace codeview
119
} // end namespace llvm
120
121
#endif // LLVM_DEBUGINFO_CODEVIEW_TYPEVISITORCALLBACKPIPELINE_H