[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Mon Feb 2 16:01:01 PST 2004


Changes in directory llvm/lib/CodeGen:

RegAllocLinearScan.cpp updated: 1.38 -> 1.39

---
Log message:

Fix debugging output.


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.38 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.39
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.38	Mon Feb  2 01:30:36 2004
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp	Mon Feb  2 16:00:32 2004
@@ -443,7 +443,7 @@
                     unsigned virtReg = op.getAllocatedRegNum();
                     Virt2PhysMap::const_iterator it = v2pMap_.find(virtReg);
                     if (it != v2pMap_.end()) {
-                        DEBUG(std::cerr << "\t\t\t%reg" << it->second
+                        DEBUG(std::cerr << "\t\t\t%reg" << it->first
                               << " -> " << mri_->getName(it->second) << '\n');
                         (*currentInstr_)->SetMachineOperandReg(i, it->second);
                     }





More information about the llvm-commits mailing list