LCOV - code coverage report
Current view: top level - include/llvm/DebugInfo/PDB/Raw - StringTableBuilder.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 1 1 100.0 %
Date: 2017-01-24 23:09:07 Functions: 0 0 -
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- StringTableBuilder.h - PDB String Table Builder ----------*- 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             : // This file creates the "/names" stream.
      11             : //
      12             : //===----------------------------------------------------------------------===//
      13             : 
      14             : #ifndef LLVM_DEBUGINFO_PDB_RAW_STRINGTABLEBUILDER_H
      15             : #define LLVM_DEBUGINFO_PDB_RAW_STRINGTABLEBUILDER_H
      16             : 
      17             : #include "llvm/ADT/DenseMap.h"
      18             : #include "llvm/ADT/StringRef.h"
      19             : #include "llvm/Support/Error.h"
      20             : #include <vector>
      21             : 
      22             : namespace llvm {
      23             : namespace msf {
      24             : class StreamWriter;
      25             : }
      26             : namespace pdb {
      27             : 
      28          20 : class StringTableBuilder {
      29             : public:
      30             :   // If string S does not exist in the string table, insert it.
      31             :   // Returns the ID for S.
      32             :   uint32_t insert(StringRef S);
      33             : 
      34             :   uint32_t finalize();
      35             :   Error commit(msf::StreamWriter &Writer) const;
      36             : 
      37             : private:
      38             :   DenseMap<StringRef, uint32_t> Strings;
      39             :   uint32_t StringSize = 1;
      40             : };
      41             : 
      42             : } // end namespace pdb
      43             : } // end namespace llvm
      44             : 
      45             : #endif // LLVM_DEBUGINFO_PDB_RAW_STRINGTABLEBUILDER_H

Generated by: LCOV version 1.13