From 36051c0c568cd67e5482fc5a881999114086d68d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 2 Nov 2002 22:07:51 +0000 Subject: [PATCH] Move function to cpp file from header llvm-svn: 4510 --- llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp | 6 ++++++ llvm/lib/CodeGen/InstrSched/SchedPriorities.h | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp index 33aae5c7f529..107ddd6c6d4a 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp +++ b/llvm/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/llvm/lib/CodeGen/InstrSched/SchedPriorities.h b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h index 7cfcb038399d..2b9405db9ac8 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h +++ b/llvm/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