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

          Line data    Source code
       1             : //===- DWARFDebugAranges.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/DWARF/DWARFAddressRange.h"
      11             : 
      12             : #include "llvm/Support/Format.h"
      13             : #include "llvm/Support/raw_ostream.h"
      14             : 
      15             : using namespace llvm;
      16             : 
      17         163 : void DWARFAddressRange::dump(raw_ostream &OS, uint32_t AddressSize,
      18             :                              DIDumpOptions DumpOpts) const {
      19             : 
      20         313 :   OS << (DumpOpts.DisplayRawContents ? " " : "[");
      21         326 :   OS << format("0x%*.*" PRIx64 ", ", AddressSize * 2, AddressSize * 2, LowPC)
      22         326 :      << format("0x%*.*" PRIx64, AddressSize * 2, AddressSize * 2, HighPC);
      23         313 :   OS << (DumpOpts.DisplayRawContents ? "" : ")");
      24         163 : }
      25             : 
      26           2 : raw_ostream &llvm::operator<<(raw_ostream &OS, const DWARFAddressRange &R) {
      27           4 :   R.dump(OS, /* AddressSize */ 8);
      28           2 :   return OS;
      29             : }

Generated by: LCOV version 1.13