dumpNode() does not need to print MachineInstrs.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 22 Aug 2002 02:59:46 +0000 (02:59 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 22 Aug 2002 02:59:46 +0000 (02:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3444 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/InstrSelection/InstrForest.cpp
lib/Target/SparcV9/InstrSelection/InstrForest.cpp

index c24c35b640b15fcf3870cce15e84c9bca75e5f0f..eb9e7f940ed0a266ef2a330d434daf5b292a4724 100644 (file)
@@ -118,21 +118,8 @@ InstructionNode::dumpNode(int indent) const
 {
   for (int i=0; i < indent; i++)
     cerr << "    ";
-  
-  cerr << getInstruction()->getOpcodeName();
-  const MachineCodeForInstruction &mvec =
-    MachineCodeForInstruction::get(getInstruction());
-
-  if (!mvec.empty())
-    cerr << "\tMachine Instructions:  ";
-
-  for (unsigned i = 0; i < mvec.size(); ++i) {
-    mvec[i]->dump();
-    if (i < mvec.size() - 1)
-      cerr << ";  ";
-  }
-  
-  cerr << "\n";
+  cerr << getInstruction()->getOpcodeName()
+       << " [label " << getOpLabel() << "]" << "\n";
 }
 
 
index c24c35b640b15fcf3870cce15e84c9bca75e5f0f..eb9e7f940ed0a266ef2a330d434daf5b292a4724 100644 (file)
@@ -118,21 +118,8 @@ InstructionNode::dumpNode(int indent) const
 {
   for (int i=0; i < indent; i++)
     cerr << "    ";
-  
-  cerr << getInstruction()->getOpcodeName();
-  const MachineCodeForInstruction &mvec =
-    MachineCodeForInstruction::get(getInstruction());
-
-  if (!mvec.empty())
-    cerr << "\tMachine Instructions:  ";
-
-  for (unsigned i = 0; i < mvec.size(); ++i) {
-    mvec[i]->dump();
-    if (i < mvec.size() - 1)
-      cerr << ";  ";
-  }
-  
-  cerr << "\n";
+  cerr << getInstruction()->getOpcodeName()
+       << " [label " << getOpLabel() << "]" << "\n";
 }