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

          Line data    Source code
       1             : //===- IPDBSourceFile.cpp - base interface for a PDB source file ----------===//
       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/IPDBSourceFile.h"
      11             : #include "llvm/DebugInfo/PDB/PDBExtras.h"
      12             : #include "llvm/DebugInfo/PDB/PDBTypes.h"
      13             : #include "llvm/Support/Format.h"
      14             : #include "llvm/Support/raw_ostream.h"
      15             : #include <cstdint>
      16             : #include <string>
      17             : 
      18             : using namespace llvm;
      19             : using namespace llvm::pdb;
      20             : 
      21             : IPDBSourceFile::~IPDBSourceFile() = default;
      22             : 
      23           0 : void IPDBSourceFile::dump(raw_ostream &OS, int Indent) const {
      24           0 :   OS.indent(Indent);
      25           0 :   PDB_Checksum ChecksumType = getChecksumType();
      26           0 :   OS << "[";
      27           0 :   if (ChecksumType != PDB_Checksum::None) {
      28           0 :     OS << ChecksumType << ": ";
      29           0 :     std::string Checksum = getChecksum();
      30           0 :     for (uint8_t c : Checksum)
      31           0 :       OS << format_hex_no_prefix(c, 2, true);
      32             :   } else
      33           0 :     OS << "No checksum";
      34           0 :   OS << "] " << getFileName() << "\n";
      35           0 : }

Generated by: LCOV version 1.13