Coverage Report

Created: 2019-02-20 00:17

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/include/llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h
Line
Count
Source (jump to first uncovered line)
1
//===- SymbolVisitorCallbacks.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_SYMBOLVISITORCALLBACKS_H
10
#define LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORCALLBACKS_H
11
12
#include "llvm/DebugInfo/CodeView/SymbolRecord.h"
13
#include "llvm/Support/Error.h"
14
15
namespace llvm {
16
namespace codeview {
17
18
class SymbolVisitorCallbacks {
19
  friend class CVSymbolVisitor;
20
21
public:
22
7.75k
  virtual ~SymbolVisitorCallbacks() = default;
23
24
  /// Action to take on unknown symbols. By default, they are ignored.
25
0
  virtual Error visitUnknownSymbol(CVSymbol &Record) {
26
0
    return Error::success();
27
0
  }
28
29
  /// Paired begin/end actions for all symbols. Receives all record data,
30
  /// including the fixed-length record prefix.  visitSymbolBegin() should
31
  /// return the type of the Symbol, or an error if it cannot be determined.
32
0
  virtual Error visitSymbolBegin(CVSymbol &Record, uint32_t Offset) {
33
0
    return Error::success();
34
0
  }
35
0
  virtual Error visitSymbolBegin(CVSymbol &Record) { return Error::success(); }
36
0
  virtual Error visitSymbolEnd(CVSymbol &Record) { return Error::success(); }
37
38
#define SYMBOL_RECORD(EnumName, EnumVal, Name)                                 \
39
0
  virtual Error visitKnownRecord(CVSymbol &CVR, Name &Record) {                \
40
0
    return Error::success();                                                   \
41
0
  }
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::ScopeEndSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::Thunk32Sym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::TrampolineSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::SectionSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::CoffGroupSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::ExportSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::ProcSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::RegisterSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::PublicSym32&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::ProcRefSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::EnvBlockSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::InlineSiteSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::LocalSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::DefRangeSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::DefRangeSubfieldSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::DefRangeRegisterSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::DefRangeFramePointerRelSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::DefRangeSubfieldRegisterSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::DefRangeFramePointerRelFullScopeSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::DefRangeRegisterRelSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::BlockSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::LabelSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::ObjNameSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::Compile2Sym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::Compile3Sym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::FrameProcSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::CallSiteInfoSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::FileStaticSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::HeapAllocationSiteSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::FrameCookieSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::CallerSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::UDTSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::BuildInfoSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::BPRelativeSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::RegRelativeSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::ConstantSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::DataSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::ThreadLocalDataSym&)
Unexecuted instantiation: llvm::codeview::SymbolVisitorCallbacks::visitKnownRecord(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>&, llvm::codeview::UsingNamespaceSym&)
42
#define SYMBOL_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
43
#include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
44
};
45
46
} // end namespace codeview
47
} // end namespace llvm
48
49
#endif // LLVM_DEBUGINFO_CODEVIEW_SYMBOLVISITORCALLBACKS_H