eventq: move virtual function definitiions to the .cc file.

This commit is contained in:
Nathan Binkert 2008-12-06 14:18:18 -08:00
parent a0d322be40
commit cbbc4501c8
2 changed files with 17 additions and 14 deletions

View file

@ -57,6 +57,21 @@ EventQueue mainEventQueue("Main Event Queue");
Counter Event::instanceCounter = 0;
#endif
Event::~Event()
{
}
const std::string
Event::name() const
{
#ifndef NDEBUG
return csprintf("Event_%d", instance);
#else
return csprintf("Event_%x", (uintptr_t)this);
#endif
}
Event *
Event::insertBefore(Event *event, Event *curr)
{

View file

@ -209,20 +209,8 @@ class Event : public Serializable, public FastAlloc
#endif
}
virtual
~Event()
{
}
virtual const std::string
name() const
{
#ifndef NDEBUG
return csprintf("Event_%d", instance);
#else
return csprintf("Event_%x", (uintptr_t)this);
#endif
}
virtual ~Event();
virtual const std::string name() const;
/// Return a C string describing the event. This string should
/// *not* be dynamically allocated; just a const char array