From 6d35326cd549163a9af189dddca45c92f6014242 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Wed, 17 Oct 2001 23:57:50 +0000 Subject: 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 --- lib/CodeGen/MachineInstr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/MachineInstr.cpp') diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 8cbf55e840..76fd4e7c83 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -98,9 +98,10 @@ operator<< (ostream& os, const MachineInstr& minstr) const Value* val = *vo; os << val << (vo.isDef()? "(def), " : ", "); } - os << endl; #endif + os << endl; + return os; } @@ -170,7 +171,7 @@ PrintMachineInstructions(const Method *const method) 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; -- cgit v1.2.3