forked from OSchip/llvm-project
Fix a virtual destructor warning.
Patch by Manuel Klimek! llvm-svn: 177132
This commit is contained in:
parent
4a4827ce21
commit
d3c993b396
|
@ -22,6 +22,8 @@ ThreadContextBase::ThreadContextBase(u32 tid)
|
|||
name[0] = '\0';
|
||||
}
|
||||
|
||||
ThreadContextBase::~ThreadContextBase() {}
|
||||
|
||||
void ThreadContextBase::SetName(const char *new_name) {
|
||||
name[0] = '\0';
|
||||
if (new_name) {
|
||||
|
|
|
@ -34,6 +34,7 @@ enum ThreadStatus {
|
|||
class ThreadContextBase {
|
||||
public:
|
||||
explicit ThreadContextBase(u32 tid);
|
||||
virtual ~ThreadContextBase();
|
||||
|
||||
const u32 tid; // Thread ID. Main thread should have tid = 0.
|
||||
u64 unique_id; // Unique thread ID.
|
||||
|
|
Loading…
Reference in New Issue