LCOV - code coverage report
Current view: top level - lib/DebugInfo - DWARFCompileUnit.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 13 13 100.0 %
Date: 2015-01-30 11:55:44 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===-- DWARFCompileUnit.cpp ----------------------------------------------===//
       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/DWARFCompileUnit.h"
      11             : #include "llvm/Support/Format.h"
      12             : #include "llvm/Support/raw_ostream.h"
      13             : 
      14             : using namespace llvm;
      15             : 
      16         207 : void DWARFCompileUnit::dump(raw_ostream &OS) {
      17         621 :   OS << format("0x%08x", getOffset()) << ": Compile Unit:"
      18         621 :      << " length = " << format("0x%08x", getLength())
      19         621 :      << " version = " << format("0x%04x", getVersion())
      20         621 :      << " abbr_offset = " << format("0x%04x", getAbbreviations()->getOffset())
      21         621 :      << " addr_size = " << format("0x%02x", getAddressByteSize())
      22         828 :      << " (next unit at " << format("0x%08x", getNextUnitOffset())
      23         207 :      << ")\n";
      24             : 
      25         414 :   const DWARFDebugInfoEntryMinimal *CU = getCompileUnitDIE(false);
      26             :   assert(CU && "Null Compile Unit?");
      27         207 :   CU->dump(OS, this, -1U);
      28         207 : }
      29             : 
      30             : // VTable anchor.
      31       26582 : DWARFCompileUnit::~DWARFCompileUnit() {
      32       26582 : }

Generated by: LCOV version 1.11