Remove unnecesary #include add dump calls pulled out of .h file
authorChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 21:21:03 +0000 (21:21 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 21:21:03 +0000 (21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@488 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/InstrSched/SchedGraph.cpp
lib/Target/SparcV9/InstrSched/SchedGraph.cpp

index 96bcb502315ec4e9c17eb89c69fb8a8e636d0e46..dc0916a224f17a157da22ca878e10cdffd594f97 100644 (file)
  *     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)
index 96bcb502315ec4e9c17eb89c69fb8a8e636d0e46..dc0916a224f17a157da22ca878e10cdffd594f97 100644 (file)
  *     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)