LLVM 20.0.0git
Public Member Functions | Friends | List of all members
llvm::PrettyStackTraceEntry Class Referenceabstract

PrettyStackTraceEntry - This class is used to represent a frame of the "pretty" stack trace that is dumped when a program crashes. More...

#include "llvm/Support/PrettyStackTrace.h"

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

Public Member Functions

 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.
 

Friends

PrettyStackTraceEntryReverseStackTrace (PrettyStackTraceEntry *)
 

Detailed Description

PrettyStackTraceEntry - This class is used to represent a frame of the "pretty" stack trace that is dumped when a program crashes.

You can define subclasses of this and declare them on the program stack: when they are constructed and destructed, they will add their symbolic frames to a virtual stack trace. This gets dumped out if the program crashes.

Definition at line 52 of file PrettyStackTrace.h.

Constructor & Destructor Documentation

◆ PrettyStackTraceEntry()

PrettyStackTraceEntry::PrettyStackTraceEntry ( )

Definition at line 215 of file PrettyStackTrace.cpp.

◆ ~PrettyStackTraceEntry()

PrettyStackTraceEntry::~PrettyStackTraceEntry ( )
virtual

Definition at line 225 of file PrettyStackTrace.cpp.

References assert().

Member Function Documentation

◆ getNextEntry()

const PrettyStackTraceEntry * llvm::PrettyStackTraceEntry::getNextEntry ( ) const
inline

getNextEntry - Return the next entry in the list of frames.

Definition at line 66 of file PrettyStackTrace.h.

◆ print()

virtual void llvm::PrettyStackTraceEntry::print ( raw_ostream OS) const
pure virtual

print - Emit information about this stack frame to OS.

Implemented in llvm::PassManagerPrettyStackEntry, llvm::PrettyStackTraceString, llvm::PrettyStackTraceFormat, and llvm::PrettyStackTraceProgram.

Friends And Related Function Documentation

◆ ReverseStackTrace

PrettyStackTraceEntry * ReverseStackTrace ( PrettyStackTraceEntry )
friend

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