LCOV - code coverage report
Current view: top level - lib/DebugInfo/PDB/Native - NativeTypeTypedef.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 12 12 100.0 %
Date: 2018-10-20 13:21:21 Functions: 6 6 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #include "llvm/DebugInfo/PDB/Native/NativeTypeTypedef.h"
       2             : 
       3             : using namespace llvm;
       4             : using namespace llvm::codeview;
       5             : using namespace llvm::pdb;
       6             : 
       7           6 : NativeTypeTypedef::NativeTypeTypedef(NativeSession &Session, SymIndexId Id,
       8           6 :                                      codeview::UDTSym Typedef)
       9             :     : NativeRawSymbol(Session, PDB_SymType::Typedef, Id),
      10           6 :       Record(std::move(Typedef)) {}
      11             : 
      12          12 : NativeTypeTypedef::~NativeTypeTypedef() {}
      13             : 
      14           3 : void NativeTypeTypedef::dump(raw_ostream &OS, int Indent,
      15             :                              PdbSymbolIdField ShowIdFields,
      16             :                              PdbSymbolIdField RecurseIdFields) const {
      17           3 :   NativeRawSymbol::dump(OS, Indent, ShowIdFields, RecurseIdFields);
      18           3 :   dumpSymbolField(OS, "name", getName(), Indent);
      19           3 :   dumpSymbolIdField(OS, "typeId", getTypeId(), Indent, Session,
      20             :                     PdbSymbolIdField::Type, ShowIdFields, RecurseIdFields);
      21           3 : }
      22             : 
      23           9 : std::string NativeTypeTypedef::getName() const { return Record.Name; }
      24             : 
      25           6 : SymIndexId NativeTypeTypedef::getTypeId() const {
      26          12 :   return Session.getSymbolCache().findSymbolByTypeIndex(Record.Type);
      27             : }

Generated by: LCOV version 1.13