diff options
Diffstat (limited to 'include/llvm/Support/PrettyStackTrace.h')
| -rw-r--r-- | include/llvm/Support/PrettyStackTrace.h | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Support/PrettyStackTrace.h b/include/llvm/Support/PrettyStackTrace.h index 027f9433969d1..62e3bbc0ddbcc 100644 --- a/include/llvm/Support/PrettyStackTrace.h +++ b/include/llvm/Support/PrettyStackTrace.h @@ -29,9 +29,11 @@ namespace llvm {    /// constructed and destructed, they will add their symbolic frames to a    /// virtual stack trace.  This gets dumped out if the program crashes.    class PrettyStackTraceEntry { -    const PrettyStackTraceEntry *NextEntry; +    friend PrettyStackTraceEntry *ReverseStackTrace(PrettyStackTraceEntry *); + +    PrettyStackTraceEntry *NextEntry;      PrettyStackTraceEntry(const PrettyStackTraceEntry &) = delete; -    void operator=(const PrettyStackTraceEntry&) = delete; +    void operator=(const PrettyStackTraceEntry &) = delete;    public:      PrettyStackTraceEntry();      virtual ~PrettyStackTraceEntry(); @@ -67,7 +69,7 @@ namespace llvm {    };    /// Returns the topmost element of the "pretty" stack state. -  const void* SavePrettyStackState(); +  const void *SavePrettyStackState();    /// Restores the topmost element of the "pretty" stack state to State, which    /// should come from a previous call to SavePrettyStackState().  This is @@ -76,7 +78,7 @@ namespace llvm {    /// happens after a crash that's been recovered by CrashRecoveryContext    /// doesn't have frames on it that were added in code unwound by the    /// CrashRecoveryContext. -  void RestorePrettyStackState(const void* State); +  void RestorePrettyStackState(const void *State);  } // end namespace llvm  | 
