From 909f6cf3501dbe358f36afca3f66f215eedd6802 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 2 Apr 2004 05:04:12 +0000 Subject: [PATCH] Add new function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12601 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/SystemUtils.h | 4 ++++ include/llvm/Support/SystemUtils.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/Support/SystemUtils.h b/include/Support/SystemUtils.h index c874d9932c0..d8c5a92e281 100644 --- a/include/Support/SystemUtils.h +++ b/include/Support/SystemUtils.h @@ -24,6 +24,10 @@ namespace llvm { /// bool isExecutableFile(const std::string &ExeFileName); +/// isStandardOutAConsole - Return true if we can tell that the standard output +/// stream goes to a terminal window or console. +bool isStandardOutAConsole(); + /// FindExecutable - Find a named executable, giving the argv[0] of program /// being executed. This allows us to find another LLVM tool if it is built into /// the same directory, but that directory is neither the current directory, nor diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h index c874d9932c0..d8c5a92e281 100644 --- a/include/llvm/Support/SystemUtils.h +++ b/include/llvm/Support/SystemUtils.h @@ -24,6 +24,10 @@ namespace llvm { /// bool isExecutableFile(const std::string &ExeFileName); +/// isStandardOutAConsole - Return true if we can tell that the standard output +/// stream goes to a terminal window or console. +bool isStandardOutAConsole(); + /// FindExecutable - Find a named executable, giving the argv[0] of program /// being executed. This allows us to find another LLVM tool if it is built into /// the same directory, but that directory is neither the current directory, nor