summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/InstrSched/SchedPriorities.cpp6
-rw-r--r--lib/CodeGen/InstrSched/SchedPriorities.h6
-rw-r--r--lib/Target/SparcV9/InstrSched/SchedPriorities.cpp6
-rw-r--r--lib/Target/SparcV9/InstrSched/SchedPriorities.h6
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