LLVM 20.0.0git
Public Member Functions | List of all members
llvm::PrettyStackTraceProgram Class Reference

PrettyStackTraceProgram - This object prints a specified program arguments to the stream as the stack trace when a crash occurs. More...

#include "llvm/Support/PrettyStackTrace.h"

Inheritance diagram for llvm::PrettyStackTraceProgram:
Inheritance graph
[legend]

Public Member Functions

 PrettyStackTraceProgram (int argc, const char *const *argv)
 
void print (raw_ostream &OS) const override
 print - Emit information about this stack frame to OS.
 
- Public Member Functions inherited from llvm::PrettyStackTraceEntry
 PrettyStackTraceEntry ()
 
virtual ~PrettyStackTraceEntry ()
 
virtual void print (raw_ostream &OS) const =0
 print - Emit information about this stack frame to OS.
 
const PrettyStackTraceEntrygetNextEntry () const
 getNextEntry - Return the next entry in the list of frames.
 

Detailed Description

PrettyStackTraceProgram - This object prints a specified program arguments to the stream as the stack trace when a crash occurs.

Definition at line 91 of file PrettyStackTrace.h.

Constructor & Destructor Documentation

◆ PrettyStackTraceProgram()

llvm::PrettyStackTraceProgram::PrettyStackTraceProgram ( int  argc,
const char *const argv 
)
inline

Definition at line 95 of file PrettyStackTrace.h.

References llvm::EnablePrettyStackTrace().

Member Function Documentation

◆ print()

void PrettyStackTraceProgram::print ( raw_ostream OS) const
overridevirtual

print - Emit information about this stack frame to OS.

Implements llvm::PrettyStackTraceEntry.

Definition at line 255 of file PrettyStackTrace.cpp.

References I, OS, and llvm::raw_ostream::write_escaped().


The documentation for this class was generated from the following files: