Replace PrintStackTrace(FILE*) with PrintStackTrace(raw_ostream&)
[oota-llvm.git] / include / llvm / Support / Signals.h
index 6b1da2ae45c126fb0dac53e06232b1cc3df862d3..f9b88fc18f4ffac93ae65bdc9c0db74317b59b51 100644 (file)
@@ -19,6 +19,8 @@
 #include <cstdio>
 
 namespace llvm {
+  class raw_ostream;
+
 namespace sys {
 
   /// This function runs all the registered interrupt handlers, including the
@@ -42,8 +44,8 @@ namespace sys {
   /// Disable all system dialog boxes that appear when the process crashes.
   void DisableSystemDialogsOnCrash();
 
-  /// \brief Print the stack trace using the given \c FILE object.
-  void PrintStackTrace(FILE *);
+  /// \brief Print the stack trace using the given \c raw_ostream object.
+  void PrintStackTrace(raw_ostream &OS);
 
   /// AddSignalHandler - Add a function to be called when an abort/kill signal
   /// is delivered to the process.  The handler can have a cookie passed to it