/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Support/SystemUtils.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | //===- SystemUtils.cpp - Utilities for low-level system tasks -------------===// |
2 | | // |
3 | | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | | // See https://llvm.org/LICENSE.txt for license information. |
5 | | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | | // |
7 | | //===----------------------------------------------------------------------===// |
8 | | // |
9 | | // This file contains functions used to do a variety of low-level, often |
10 | | // system-specific, tasks. |
11 | | // |
12 | | //===----------------------------------------------------------------------===// |
13 | | |
14 | | #include "llvm/Support/SystemUtils.h" |
15 | | #include "llvm/Support/raw_ostream.h" |
16 | | using namespace llvm; |
17 | | |
18 | | bool llvm::CheckBitcodeOutputToConsole(raw_ostream &stream_to_check, |
19 | 1.81k | bool print_warning) { |
20 | 1.81k | if (stream_to_check.is_displayed()) { |
21 | 0 | if (print_warning) { |
22 | 0 | errs() << "WARNING: You're attempting to print out a bitcode file.\n" |
23 | 0 | "This is inadvisable as it may cause display problems. If\n" |
24 | 0 | "you REALLY want to taste LLVM bitcode first-hand, you\n" |
25 | 0 | "can force output with the `-f' option.\n\n"; |
26 | 0 | } |
27 | 0 | return true; |
28 | 0 | } |
29 | 1.81k | return false; |
30 | 1.81k | } |