eventq: move virtual function definitiions to the .cc file.
authorNathan Binkert <nate@binkert.org>
Sat, 6 Dec 2008 22:18:18 +0000 (14:18 -0800)
committerNathan Binkert <nate@binkert.org>
Sat, 6 Dec 2008 22:18:18 +0000 (14:18 -0800)
src/sim/eventq.cc
src/sim/eventq.hh

index dfff760a02f3000ab4e5edd2a1c8857daf3c3ba2..9c8792f8d35c0b92daf0c360d72cc0a783d30997 100644 (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)
 {
index 281df2dc32f87eaa47860b437293dae787f2ce42..5c98659b6556459d45ae88b1031f53ee4ec74f4f 100644 (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