Move function to cpp file from header

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-11-02 22:07:51 +00:00
parent 0d05e6d942
commit 5da2e6ac70
4 changed files with 14 additions and 10 deletions

View File

@ -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),

View 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

View File

@ -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),

View 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