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 | b7d0c37f5c885b79f68ce60f9d2bde0125121283 (patch) | |
| tree | 22b73cb9a58777b9d7c5b9d249b18db65649cc54 /llvm/lib/CodeGen/InstrSched | |
| parent | bbf765695fe7c2839c36e4c6ed694fcab226650e (diff) | |
| download | bcm5719-llvm-b7d0c37f5c885b79f68ce60f9d2bde0125121283.tar.gz bcm5719-llvm-b7d0c37f5c885b79f68ce60f9d2bde0125121283.zip | |
Remove unnecesary #include add dump calls pulled out of .h file
llvm-svn: 488
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched')
| -rw-r--r-- | llvm/lib/CodeGen/InstrSched/SchedGraph.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp index 96bcb502315..dc0916a224f 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/llvm/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) |

