LCOV - code coverage report
Current view: top level - include/llvm/DebugInfo/CodeView - SymbolRecordMapping.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 3 3 100.0 %
Date: 2017-09-14 15:23:50 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- SymbolRecordMapping.h ------------------------------------*- C++ -*-===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : 
      10             : #ifndef LLVM_DEBUGINFO_CODEVIEW_SYMBOLRECORDMAPPING_H
      11             : #define LLVM_DEBUGINFO_CODEVIEW_SYMBOLRECORDMAPPING_H
      12             : 
      13             : #include "llvm/DebugInfo/CodeView/CodeViewRecordIO.h"
      14             : #include "llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h"
      15             : 
      16             : namespace llvm {
      17             : class BinaryStreamReader;
      18             : class BinaryStreamWriter;
      19             : 
      20             : namespace codeview {
      21        6114 : class SymbolRecordMapping : public SymbolVisitorCallbacks {
      22             : public:
      23             :   explicit SymbolRecordMapping(BinaryStreamReader &Reader,
      24             :                                CodeViewContainer Container)
      25        4239 :       : IO(Reader), Container(Container) {}
      26             :   explicit SymbolRecordMapping(BinaryStreamWriter &Writer,
      27             :                                CodeViewContainer Container)
      28        1875 :       : IO(Writer), Container(Container) {}
      29             : 
      30             :   Error visitSymbolBegin(CVSymbol &Record) override;
      31             :   Error visitSymbolEnd(CVSymbol &Record) override;
      32             : 
      33             : #define SYMBOL_RECORD(EnumName, EnumVal, Name)                                 \
      34             :   Error visitKnownRecord(CVSymbol &CVR, Name &Record) override;
      35             : #define SYMBOL_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
      36             : #include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
      37             : 
      38             : private:
      39             :   Optional<SymbolKind> Kind;
      40             : 
      41             :   CodeViewRecordIO IO;
      42             :   CodeViewContainer Container;
      43             : };
      44             : }
      45             : }
      46             : 
      47             : #endif

Generated by: LCOV version 1.13