This method belonged in VirtRegMap.
[oota-llvm.git] / lib / CodeGen / LiveInterval.cpp
index 65a4d2b19dd501dcb94ddbd7f53ac742c0a66112..c2dbd6ab75a1aba7b638d01e198c7ee0214d2222 100644 (file)
@@ -650,12 +650,9 @@ void LiveRange::dump() const {
 }
 
 void LiveInterval::print(raw_ostream &OS, const TargetRegisterInfo *TRI) const {
-  if (isStackSlot())
-    OS << "SS#" << getStackSlotIndex();
-  else
-    OS << PrintReg(reg, TRI);
-
-  OS << ',' << weight;
+  OS << PrintReg(reg, TRI);
+  if (weight != 0)
+    OS << ',' << weight;
 
   if (empty())
     OS << " EMPTY";