diff options
author | Nathan Binkert <nate@binkert.org> | 2008-12-06 14:18:18 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-12-06 14:18:18 -0800 |
commit | cbbc4501c87c7910ba74ea8d4b53df257c01940d (patch) | |
tree | 10b786bf58be2053db2f09d5a89742f4d545e1fc | |
parent | a0d322be4021891ee21edb4424e4af1957a50d0a (diff) | |
download | gem5-cbbc4501c87c7910ba74ea8d4b53df257c01940d.tar.xz |
eventq: move virtual function definitiions to the .cc file.
-rw-r--r-- | src/sim/eventq.cc | 15 | ||||
-rw-r--r-- | src/sim/eventq.hh | 16 |
2 files changed, 17 insertions, 14 deletions
diff --git a/src/sim/eventq.cc b/src/sim/eventq.cc index dfff760a0..9c8792f8d 100644 --- a/src/sim/eventq.cc +++ b/src/sim/eventq.cc @@ -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) { diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index 281df2dc3..5c98659b6 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -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 |