LLVM
22.0.0git
include
llvm
Support
SystemUtils.h
Go to the documentation of this file.
1
//===- SystemUtils.h - Utilities to do low-level system stuff ---*- C++ -*-===//
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
#ifndef LLVM_SUPPORT_SYSTEMUTILS_H
15
#define LLVM_SUPPORT_SYSTEMUTILS_H
16
17
#include "
llvm/Support/Compiler.h
"
18
19
namespace
llvm
{
20
class
raw_ostream
;
21
22
/// Determine if the raw_ostream provided is connected to a terminal. If so,
23
/// generate a warning message to errs() advising against display of bitcode
24
/// and return true. Otherwise just return false.
25
/// Check for output written to a console
26
LLVM_ABI
bool
CheckBitcodeOutputToConsole
(
27
raw_ostream
&stream_to_check
///< The stream to be checked
28
);
29
30
}
// namespace llvm
31
32
#endif
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:213
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition
raw_ostream.h:53
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
llvm::CheckBitcodeOutputToConsole
LLVM_ABI bool CheckBitcodeOutputToConsole(raw_ostream &stream_to_check)
Determine if the raw_ostream provided is connected to a terminal.
Definition
SystemUtils.cpp:18
Generated on
for LLVM by
1.14.0