1193323Sed//===- SystemUtils.h - Utilities to do low-level system stuff ---*- C++ -*-===// 2193323Sed// 3193323Sed// The LLVM Compiler Infrastructure 4193323Sed// 5193323Sed// This file is distributed under the University of Illinois Open Source 6193323Sed// License. See LICENSE.TXT for details. 7193323Sed// 8193323Sed//===----------------------------------------------------------------------===// 9193323Sed// 10193323Sed// This file contains functions used to do a variety of low-level, often 11193323Sed// system-specific, tasks. 12193323Sed// 13193323Sed//===----------------------------------------------------------------------===// 14193323Sed 15193323Sed#ifndef LLVM_SUPPORT_SYSTEMUTILS_H 16193323Sed#define LLVM_SUPPORT_SYSTEMUTILS_H 17193323Sed 18198090Srdivacky#include <string> 19193323Sed 20193323Sednamespace llvm { 21198090Srdivacky class raw_ostream; 22193323Sed 23212904Sdim/// Determine if the raw_ostream provided is connected to a terminal. If so, 24212904Sdim/// generate a warning message to errs() advising against display of bitcode 25212904Sdim/// and return true. Otherwise just return false. 26193323Sed/// @brief Check for output written to a console 27193323Sedbool CheckBitcodeOutputToConsole( 28198090Srdivacky raw_ostream &stream_to_check, ///< The stream to be checked 29198090Srdivacky bool print_warning = true ///< Control whether warnings are printed 30193323Sed); 31193323Sed 32193323Sed} // End llvm namespace 33193323Sed 34193323Sed#endif 35