aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Trace/common/ThreadPostMortemTrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/Trace/common/ThreadPostMortemTrace.h')
-rw-r--r--lldb/source/Plugins/Trace/common/ThreadPostMortemTrace.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Trace/common/ThreadPostMortemTrace.h b/lldb/source/Plugins/Trace/common/ThreadPostMortemTrace.h
index 9cfe754ae0e4..cdb896cff5c5 100644
--- a/lldb/source/Plugins/Trace/common/ThreadPostMortemTrace.h
+++ b/lldb/source/Plugins/Trace/common/ThreadPostMortemTrace.h
@@ -18,8 +18,6 @@ namespace lldb_private {
/// Thread implementation used for representing threads gotten from trace
/// session files, which are similar to threads from core files.
///
-/// See \a TraceSessionFileParser for more information regarding trace session
-/// files.
class ThreadPostMortemTrace : public Thread {
public:
/// \param[in] process
@@ -32,7 +30,7 @@ public:
/// The file that contains the list of instructions that were traced when
/// this thread was being executed.
ThreadPostMortemTrace(Process &process, lldb::tid_t tid,
- const FileSpec &trace_file)
+ const llvm::Optional<FileSpec> &trace_file)
: Thread(process, tid), m_trace_file(trace_file) {}
void RefreshStateAfterStop() override;
@@ -44,7 +42,7 @@ public:
/// \return
/// The trace file of this thread.
- const FileSpec &GetTraceFile() const;
+ const llvm::Optional<FileSpec> &GetTraceFile() const;
protected:
bool CalculateStopInfo() override;
@@ -52,7 +50,7 @@ protected:
lldb::RegisterContextSP m_thread_reg_ctx_sp;
private:
- FileSpec m_trace_file;
+ llvm::Optional<FileSpec> m_trace_file;
};
} // namespace lldb_private