diff options
Diffstat (limited to 'contrib/llvm-project/lldb/include/lldb/Target/ThreadSpec.h')
-rw-r--r-- | contrib/llvm-project/lldb/include/lldb/Target/ThreadSpec.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/llvm-project/lldb/include/lldb/Target/ThreadSpec.h b/contrib/llvm-project/lldb/include/lldb/Target/ThreadSpec.h index 05e7dcdb38d3..8c22d53185ff 100644 --- a/contrib/llvm-project/lldb/include/lldb/Target/ThreadSpec.h +++ b/contrib/llvm-project/lldb/include/lldb/Target/ThreadSpec.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef liblldb_ThreadSpec_h_ -#define liblldb_ThreadSpec_h_ +#ifndef LLDB_TARGET_THREADSPEC_H +#define LLDB_TARGET_THREADSPEC_H #include "lldb/Utility/StructuredData.h" #include "lldb/lldb-private.h" @@ -46,9 +46,11 @@ public: void SetTID(lldb::tid_t tid) { m_tid = tid; } - void SetName(llvm::StringRef name) { m_name = name; } + void SetName(llvm::StringRef name) { m_name = std::string(name); } - void SetQueueName(llvm::StringRef queue_name) { m_queue_name = queue_name; } + void SetQueueName(llvm::StringRef queue_name) { + m_queue_name = std::string(queue_name); + } uint32_t GetIndex() const { return m_index; } @@ -126,4 +128,4 @@ private: } // namespace lldb_private -#endif // liblldb_ThreadSpec_h_ +#endif // LLDB_TARGET_THREADSPEC_H |