Use size_t instead of long to represent memory usage. long is 32 bits
[oota-llvm.git] / include / llvm / Support / SystemUtils.h
index decc3c4a3d4b6a2601589aa8257ade9870d32d1c..e323448d5ba89e3848b0eeedb88323bad266ff58 100644 (file)
 
 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, ///< The stream to be checked
+  bool print_warning = true ///< Control whether warnings are printed
+);
 
 /// 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