changeset ba6f2477d870 in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=ba6f2477d870 description: eventq: move virtual function definitiions to the .cc file.
diffstat: 2 files changed, 7 insertions(+), 7 deletions(-) src/sim/eventq.cc | 7 +++++++ src/sim/eventq.hh | 7 ------- diffs (51 lines): diff -r 8e87c0aa1f0b -r ba6f2477d870 src/sim/eventq.cc --- a/src/sim/eventq.cc Sat Dec 06 14:18:18 2008 -0800 +++ b/src/sim/eventq.cc Sat Dec 06 14:18:18 2008 -0800 @@ -56,6 +56,21 @@ #ifndef NDEBUG 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) diff -r 8e87c0aa1f0b -r ba6f2477d870 src/sim/eventq.hh --- a/src/sim/eventq.hh Sat Dec 06 14:18:18 2008 -0800 +++ b/src/sim/eventq.hh Sat Dec 06 14:18:18 2008 -0800 @@ -209,20 +209,8 @@ #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 _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev