1. Add a bottom-up pass on BURG trees that is used to fix constant operands.
   Needs to be bottom up because constant values may be forward-substituted
   to their uses (i.e., into the parent in the BURG tree).
2. Move most of the constant-fixup code into machine-indepedent file
   InstrSelectionSupport.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@859 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 8cbf55e..76fd4e7 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -98,9 +98,10 @@
       const Value* val = *vo;
       os << val << (vo.isDef()? "(def), " : ", ");
     }
-  os << endl;
 #endif
   
+  os << endl;
+  
   return os;
 }
 
@@ -170,7 +171,7 @@
       
       MachineCodeForBasicBlock& mvec = bb->getMachineInstrVec();
       for (unsigned i=0; i < mvec.size(); i++)
-	cout << "\t" << *mvec[i] << endl;
+	cout << "\t" << *mvec[i];
     } 
   cout << endl << "End method \"" << method->getName() << "\""
        << endl << endl;