2003-09-30 20:37:50 +02:00
|
|
|
//===- SystemUtils.h - Utilities to do low-level system stuff ---*- C++ -*-===//
|
2005-04-21 22:48:15 +02:00
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2005-04-21 22:48:15 +02:00
|
|
|
//
|
2003-10-20 21:46:57 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
2002-12-24 00:50:16 +01:00
|
|
|
//
|
|
|
|
// This file contains functions used to do a variety of low-level, often
|
|
|
|
// system-specific, tasks.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2004-09-02 00:55:40 +02:00
|
|
|
#ifndef LLVM_SUPPORT_SYSTEMUTILS_H
|
|
|
|
#define LLVM_SUPPORT_SYSTEMUTILS_H
|
2002-12-24 00:50:16 +01:00
|
|
|
|
2003-11-11 23:41:34 +01:00
|
|
|
namespace llvm {
|
2020-07-08 22:20:34 +02:00
|
|
|
class raw_ostream;
|
2004-04-02 07:04:12 +02:00
|
|
|
|
2010-09-02 01:33:02 +02:00
|
|
|
/// Determine if the raw_ostream provided is connected to a terminal. If so,
|
|
|
|
/// generate a warning message to errs() advising against display of bitcode
|
|
|
|
/// and return true. Otherwise just return false.
|
2018-05-01 18:10:38 +02:00
|
|
|
/// Check for output written to a console
|
2009-07-15 19:04:50 +02:00
|
|
|
bool CheckBitcodeOutputToConsole(
|
2020-07-08 22:20:34 +02:00
|
|
|
raw_ostream &stream_to_check ///< The stream to be checked
|
2009-07-15 19:04:50 +02:00
|
|
|
);
|
|
|
|
|
2020-07-08 22:20:34 +02:00
|
|
|
} // namespace llvm
|
2003-11-11 23:41:34 +01:00
|
|
|
|
2002-12-24 00:50:16 +01:00
|
|
|
#endif
|