LCOV - code coverage report
Current view: top level - lib/DebugInfo/PDB/Native - NativeBuiltinSymbol.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 11 16 68.8 %
Date: 2017-09-14 15:23:50 Functions: 7 11 63.6 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- NativeBuiltinSymbol.cpp ------------------------------------ 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             : #include "llvm/DebugInfo/PDB/Native/NativeBuiltinSymbol.h"
      11             : 
      12             : #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
      13             : 
      14             : namespace llvm {
      15             : namespace pdb {
      16             : 
      17          19 : NativeBuiltinSymbol::NativeBuiltinSymbol(NativeSession &PDBSession,
      18             :                                          SymIndexId Id, PDB_BuiltinType T,
      19          19 :                                          uint64_t L)
      20          19 :     : NativeRawSymbol(PDBSession, Id), Session(PDBSession), Type(T), Length(L) {
      21          19 : }
      22             : 
      23          57 : NativeBuiltinSymbol::~NativeBuiltinSymbol() {}
      24             : 
      25          18 : std::unique_ptr<NativeRawSymbol> NativeBuiltinSymbol::clone() const {
      26          72 :   return llvm::make_unique<NativeBuiltinSymbol>(Session, SymbolId, Type, Length);
      27             : }
      28             : 
      29           0 : void NativeBuiltinSymbol::dump(raw_ostream &OS, int Indent) const {
      30             :   // TODO:  Apparently nothing needs this yet.
      31           0 : }
      32             : 
      33          36 : PDB_SymType NativeBuiltinSymbol::getSymTag() const {
      34          36 :   return PDB_SymType::BuiltinType;
      35             : }
      36             : 
      37           9 : PDB_BuiltinType NativeBuiltinSymbol::getBuiltinType() const { return Type; }
      38             : 
      39           0 : bool NativeBuiltinSymbol::isConstType() const { return false; }
      40             : 
      41          18 : uint64_t NativeBuiltinSymbol::getLength() const { return Length; }
      42             : 
      43           0 : bool NativeBuiltinSymbol::isUnalignedType() const { return false; }
      44             : 
      45           0 : bool NativeBuiltinSymbol::isVolatileType() const { return false; }
      46             : 
      47             : } // namespace pdb
      48             : } // namespace llvm

Generated by: LCOV version 1.13