diff options
author | Chris Lattner <sabre@nondot.org> | 2001-09-07 21:21:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-09-07 21:21:03 +0000 |
commit | c83e954025206605f253498f62f4c1bd218646fb (patch) | |
tree | 8c3546e27725e30b1003d28651e9dc3572e33629 /lib/CodeGen/InstrSched/SchedGraph.cpp | |
parent | 1ff63a121764f9fbda839bf5e4a31f1c9ffade44 (diff) |
Remove unnecesary #include add dump calls pulled out of .h file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSched/SchedGraph.cpp')
-rw-r--r-- | lib/CodeGen/InstrSched/SchedGraph.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index 96bcb50231..dc0916a224 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/lib/CodeGen/InstrSched/SchedGraph.cpp @@ -12,12 +12,6 @@ * 7/20/01 - Vikram Adve - Created ***************************************************************************/ -//************************** System Include Files **************************/ - -#include <algorithm> - -//*************************** User Include Files ***************************/ - #include "llvm/InstrTypes.h" #include "llvm/Instruction.h" #include "llvm/BasicBlock.h" @@ -25,6 +19,8 @@ #include "llvm/CodeGen/SchedGraph.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/TargetMachine.h" +#include "llvm/Support/StringExtras.h" +#include <algorithm> //************************* Class Implementations **************************/ @@ -102,6 +98,10 @@ SchedGraphEdge::SchedGraphEdge(SchedGraphNode* _src, sink->addInEdge(this); } +void SchedGraphEdge::dump(int indent=0) const { + printIndent(indent); cout << *this; +} + // // class SchedGraphNode @@ -135,6 +135,10 @@ SchedGraphNode::~SchedGraphNode() delete outEdges[i]; } +void SchedGraphNode::dump(int indent=0) const { + printIndent(indent); cout << *this; +} + inline void SchedGraphNode::addInEdge(SchedGraphEdge* edge) |