Move function to cpp file from header
authorChris Lattner <sabre@nondot.org>
Sat, 2 Nov 2002 22:07:51 +0000 (22:07 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 2 Nov 2002 22:07:51 +0000 (22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4510 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/InstrSched/SchedPriorities.cpp
lib/CodeGen/InstrSched/SchedPriorities.h
lib/Target/SparcV9/InstrSched/SchedPriorities.cpp
lib/Target/SparcV9/InstrSched/SchedPriorities.h

index 33aae5c7f52920276ff2bf20a2709630c53bafad..107ddd6c6d4a52dff58b52395626afb4d57f707d 100644 (file)
 #include "Support/PostOrderIterator.h"
 using std::cerr;
 
+std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd) {
+  return os << "Delay for node " << nd->node->getNodeId()
+           << " = " << (long)nd->delay << "\n";
+}
+
+
 SchedPriorities::SchedPriorities(const Function *, const SchedGraph *G,
                                  FunctionLiveVarInfo &LVI)
   : curTime(0), graph(G), methodLiveVarInfo(LVI),
index 7cfcb038399d847f273994e410d396cf8c870681..2b9405db9ac831fa0d32e3d0eb26aba12ebdc4e0 100644 (file)
@@ -18,7 +18,6 @@
 #include "llvm/Target/MachineSchedInfo.h"
 #include "Support/hash_set"
 #include <list>
-#include <iosfwd>
 
 class Function;
 class MachineInstr;
@@ -202,9 +201,6 @@ inline void SchedPriorities::updateTime(cycles_t c) {
   mcands.clear();
 }
 
-inline std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd) {
-  return os << "Delay for node " << nd->node->getNodeId()
-           << " = " << (long)nd->delay << "\n";
-}
+std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd);
 
 #endif
index 33aae5c7f52920276ff2bf20a2709630c53bafad..107ddd6c6d4a52dff58b52395626afb4d57f707d 100644 (file)
 #include "Support/PostOrderIterator.h"
 using std::cerr;
 
+std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd) {
+  return os << "Delay for node " << nd->node->getNodeId()
+           << " = " << (long)nd->delay << "\n";
+}
+
+
 SchedPriorities::SchedPriorities(const Function *, const SchedGraph *G,
                                  FunctionLiveVarInfo &LVI)
   : curTime(0), graph(G), methodLiveVarInfo(LVI),
index 7cfcb038399d847f273994e410d396cf8c870681..2b9405db9ac831fa0d32e3d0eb26aba12ebdc4e0 100644 (file)
@@ -18,7 +18,6 @@
 #include "llvm/Target/MachineSchedInfo.h"
 #include "Support/hash_set"
 #include <list>
-#include <iosfwd>
 
 class Function;
 class MachineInstr;
@@ -202,9 +201,6 @@ inline void SchedPriorities::updateTime(cycles_t c) {
   mcands.clear();
 }
 
-inline std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd) {
-  return os << "Delay for node " << nd->node->getNodeId()
-           << " = " << (long)nd->delay << "\n";
-}
+std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd);
 
 #endif