[llvm-commits] CVS: llvm/include/llvm/Support/SystemUtils.h

Reid Spencer reid at x10sys.com
Sat Jan 1 15:56:31 PST 2005



Changes in directory llvm/include/llvm/Support:

SystemUtils.h updated: 1.17 -> 1.18
---
Log message:

Implement a function to print a warning if bytecode output is to be sent to
a terminal/console.


---
Diffs of the changes:  (+6 -3)

Index: llvm/include/llvm/Support/SystemUtils.h
diff -u llvm/include/llvm/Support/SystemUtils.h:1.17 llvm/include/llvm/Support/SystemUtils.h:1.18
--- llvm/include/llvm/Support/SystemUtils.h:1.17	Tue Dec 21 09:40:41 2004
+++ llvm/include/llvm/Support/SystemUtils.h	Sat Jan  1 17:56:20 2005
@@ -19,9 +19,12 @@
 
 namespace llvm {
 
-/// isStandardOutAConsole - Return true if we can tell that the standard output
-/// stream goes to a terminal window or console.
-bool isStandardOutAConsole();
+/// Determine if the ostream provided is connected to the std::cout and 
+/// displayed or not (to a console window). If so, generate a warning message 
+/// advising against display of bytecode and return true. Otherwise just return
+/// false
+/// @brief Check for output written to a console
+bool CheckBytecodeOutputToConsole(std::ostream* stream_to_check);
 
 /// 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






More information about the llvm-commits mailing list