Fix a virtual destructor warning.

Patch by Manuel Klimek!

llvm-svn: 177132
This commit is contained in:
Eric Christopher 2013-03-15 00:20:17 +00:00
parent 4a4827ce21
commit d3c993b396
2 changed files with 3 additions and 0 deletions

View File

@ -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) {

View File

@ -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.