LCOV - code coverage report
Current view: top level - include/llvm/DebugInfo/DWARF - DWARFTypeUnit.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 7 7 100.0 %
Date: 2018-05-20 00:06:23 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- DWARFTypeUnit.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_DWARF_DWARFTYPEUNIT_H
      11             : #define LLVM_DEBUGINFO_DWARF_DWARFTYPEUNIT_H
      12             : 
      13             : #include "llvm/ADT/StringRef.h"
      14             : #include "llvm/DebugInfo/DWARF/DWARFUnit.h"
      15             : #include "llvm/DebugInfo/DWARF/DWARFUnitIndex.h"
      16             : #include "llvm/Support/DataExtractor.h"
      17             : #include <cstdint>
      18             : 
      19             : namespace llvm {
      20             : 
      21             : class DWARFContext;
      22             : class DWARFDebugAbbrev;
      23             : struct DWARFSection;
      24             : class raw_ostream;
      25             : 
      26          59 : class DWARFTypeUnit : public DWARFUnit {
      27             : public:
      28             :   DWARFTypeUnit(DWARFContext &Context, const DWARFSection &Section,
      29             :                 const DWARFUnitHeader &Header,
      30             :                 const DWARFDebugAbbrev *DA, const DWARFSection *RS,
      31             :                 StringRef SS, const DWARFSection &SOS, const DWARFSection *AOS,
      32             :                 const DWARFSection &LS, bool LE, bool IsDWO,
      33             :                 const DWARFUnitSectionBase &UnitSection)
      34          59 :       : DWARFUnit(Context, Section, Header, DA, RS, SS, SOS, AOS, LS, LE, IsDWO,
      35          59 :                   UnitSection) {}
      36             : 
      37         118 :   uint32_t getHeaderSize() const override {
      38         118 :     return DWARFUnit::getHeaderSize() + 12;
      39             :   }
      40          55 :   uint64_t getTypeHash() const { return getHeader().getTypeHash(); }
      41         108 :   uint32_t getTypeOffset() const { return getHeader().getTypeOffset(); }
      42             : 
      43             :   void dump(raw_ostream &OS, DIDumpOptions DumpOpts = {});
      44             :   static const DWARFSectionKind Section = DW_SECT_TYPES;
      45             : };
      46             : 
      47             : } // end namespace llvm
      48             : 
      49             : #endif // LLVM_DEBUGINFO_DWARF_DWARFTYPEUNIT_H

Generated by: LCOV version 1.13