SystemUtils.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- SystemUtils.h - Utilities to do low-level system stuff ---*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. //
  14. // This file contains functions used to do a variety of low-level, often
  15. // system-specific, tasks.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_SUPPORT_SYSTEMUTILS_H
  19. #define LLVM_SUPPORT_SYSTEMUTILS_H
  20. namespace llvm {
  21. class raw_ostream;
  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. bool CheckBitcodeOutputToConsole(
  27. raw_ostream &stream_to_check ///< The stream to be checked
  28. );
  29. } // namespace llvm
  30. #endif
  31. #ifdef __GNUC__
  32. #pragma GCC diagnostic pop
  33. #endif