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

          Line data    Source code
       1             : //===- SystemUtils.cpp - Utilities for low-level system tasks -------------===//
       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 contains functions used to do a variety of low-level, often
      11             : // system-specific, tasks.
      12             : //
      13             : //===----------------------------------------------------------------------===//
      14             : 
      15             : #include "llvm/Support/SystemUtils.h"
      16             : #include "llvm/Support/raw_ostream.h"
      17             : using namespace llvm;
      18             : 
      19        1808 : bool llvm::CheckBitcodeOutputToConsole(raw_ostream &stream_to_check,
      20             :                                        bool print_warning) {
      21        1808 :   if (stream_to_check.is_displayed()) {
      22           0 :     if (print_warning) {
      23           0 :       errs() << "WARNING: You're attempting to print out a bitcode file.\n"
      24             :                 "This is inadvisable as it may cause display problems. If\n"
      25             :                 "you REALLY want to taste LLVM bitcode first-hand, you\n"
      26           0 :                 "can force output with the `-f' option.\n\n";
      27             :     }
      28           0 :     return true;
      29             :   }
      30             :   return false;
      31             : }

Generated by: LCOV version 1.13