Add a new (static inline) std::ostream& << AllocInfo& method. Use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11002 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
index a9a5f3d..0f1f6d2 100644
--- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
+++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
@@ -1201,12 +1201,8 @@
std::cerr << "FnAllocState:\n";
for (unsigned i = 0; i < state.size (); ++i) {
AllocInfo &S = state[i];
- if (Insn == S.Instruction) {
- std::cerr << " (Instruction " << S.Instruction
- << ", Operand " << S.Operand
- << ", AllocState " << S.allocStateToString ()
- << ", Placement " << S.Placement << ")\n";
- }
+ if (Insn == S.Instruction)
+ std::cerr << " " << S << "\n";
}
std::cerr << "----------\n";
++Insn;