LCOV - code coverage report
Current view: top level - include/llvm/Transforms/IPO - ThinLTOBitcodeWriter.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 1 1 100.0 %
Date: 2018-10-20 13:21:21 Functions: 0 0 -
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- ThinLTOBitcodeWriter.h - Bitcode writing pass for ThinLTO ----------===//
       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 pass prepares a module containing type metadata for ThinLTO by splitting
      11             : // it into regular and thin LTO parts if possible, and writing both parts to
      12             : // a multi-module bitcode file. Modules that do not contain type metadata are
      13             : // written unmodified as a single module.
      14             : //
      15             : //===----------------------------------------------------------------------===//
      16             : 
      17             : #ifndef LLVM_TRANSFORMS_IPO_THINLTOBITCODEWRITER_H
      18             : #define LLVM_TRANSFORMS_IPO_THINLTOBITCODEWRITER_H
      19             : 
      20             : #include <llvm/IR/PassManager.h>
      21             : #include <llvm/Support/raw_ostream.h>
      22             : 
      23             : namespace llvm {
      24             : 
      25             : class ThinLTOBitcodeWriterPass
      26             :     : public PassInfoMixin<ThinLTOBitcodeWriterPass> {
      27             :   raw_ostream &OS;
      28             :   raw_ostream *ThinLinkOS;
      29             : 
      30             : public:
      31             :   // Writes bitcode to OS. Also write thin link file to ThinLinkOS, if
      32             :   // it's not nullptr.
      33             :   ThinLTOBitcodeWriterPass(raw_ostream &OS, raw_ostream *ThinLinkOS)
      34          10 :       : OS(OS), ThinLinkOS(ThinLinkOS) {}
      35             : 
      36             :   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
      37             : };
      38             : 
      39             : } // namespace llvm
      40             : 
      41             : #endif

Generated by: LCOV version 1.13