llvm::sys::PrintStackTrace

Print the stack trace using the given raw_ostream object.

Synopsis

Declared in <llvm/Support/Signals.h>

void
PrintStackTrace(
    raw_ostream& OS,
    int Depth = 0);

Parameters

NameDescription
OSStream to which the stack trace is written.
Depthrefers to the number of stackframes to print. If not specified, the entire frame is printed.