From 5da2e6ac7016f61e3475cf6e982b2517a2294ca4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 2 Nov 2002 22:07:51 +0000 Subject: Move function to cpp file from header git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4510 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/InstrSched/SchedPriorities.cpp | 6 ++++++ lib/CodeGen/InstrSched/SchedPriorities.h | 6 +----- lib/Target/SparcV9/InstrSched/SchedPriorities.cpp | 6 ++++++ 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 -#include 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 -#include 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 -- cgit v1.2.3