LCOV - code coverage report
Current view: top level - lib/DebugInfo/PDB - PDBSymbolCompilandEnv.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 4 11 36.4 %
Date: 2017-09-14 15:23:50 Functions: 1 3 33.3 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- PDBSymbolCompilandEnv.cpp - compiland env variables ------*- 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/PDBSymbolCompilandEnv.h"
      11             : 
      12             : #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
      13             : #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
      14             : #include "llvm/DebugInfo/PDB/PDBSymbol.h"
      15             : 
      16             : #include <utility>
      17             : 
      18             : using namespace llvm;
      19             : using namespace llvm::pdb;
      20             : 
      21           1 : PDBSymbolCompilandEnv::PDBSymbolCompilandEnv(
      22           1 :     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
      23           3 :     : PDBSymbol(PDBSession, std::move(Symbol)) {
      24             :   assert(RawSymbol->getSymTag() == PDB_SymType::CompilandEnv);
      25           1 : }
      26             : 
      27           0 : std::string PDBSymbolCompilandEnv::getValue() const {
      28           0 :   Variant Value = RawSymbol->getValue();
      29           0 :   if (Value.Type != PDB_VariantType::String)
      30             :     return std::string();
      31           0 :   return std::string(Value.Value.String);
      32             : }
      33             : 
      34           0 : void PDBSymbolCompilandEnv::dump(PDBSymDumper &Dumper) const {
      35           0 :   Dumper.dump(*this);
      36           0 : }

Generated by: LCOV version 1.13