diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-02 22:07:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-02 22:07:51 +0000 |
commit | 5da2e6ac7016f61e3475cf6e982b2517a2294ca4 (patch) | |
tree | e278099a27486b3aadb9487faf96b77ae1614c20 | |
parent | 0d05e6d942e75a1187e8538adf3a05c09976cabf (diff) | |
download | llvm-5da2e6ac7016f61e3475cf6e982b2517a2294ca4.tar.gz llvm-5da2e6ac7016f61e3475cf6e982b2517a2294ca4.tar.bz2 llvm-5da2e6ac7016f61e3475cf6e982b2517a2294ca4.tar.xz |
Move function to cpp file from header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4510 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/InstrSched/SchedPriorities.cpp | 6 | ||||
-rw-r--r-- | lib/CodeGen/InstrSched/SchedPriorities.h | 6 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/SchedPriorities.cpp | 6 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/SchedPriorities.h | 6 |
4 files changed, 14 insertions, 10 deletions
diff --git a/lib/CodeGen/InstrSched/SchedPriorities.cpp b/lib/CodeGen/InstrSched/SchedPriorities.cpp index 33aae5c7f5..107ddd6c6d 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.cpp +++ b/lib/CodeGen/InstrSched/SchedPriorities.cpp @@ -17,6 +17,12 @@ #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), diff --git a/lib/CodeGen/InstrSched/SchedPriorities.h b/lib/CodeGen/InstrSched/SchedPriorities.h index 7cfcb03839..2b9405db9a 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.h +++ b/lib/CodeGen/InstrSched/SchedPriorities.h @@ -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 diff --git a/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp b/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp index 33aae5c7f5..107ddd6c6d 100644 --- a/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp +++ b/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp @@ -17,6 +17,12 @@ #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), diff --git a/lib/Target/SparcV9/InstrSched/SchedPriorities.h b/lib/Target/SparcV9/InstrSched/SchedPriorities.h index 7cfcb03839..2b9405db9a 100644 --- a/lib/Target/SparcV9/InstrSched/SchedPriorities.h +++ b/lib/Target/SparcV9/InstrSched/SchedPriorities.h @@ -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 |