aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-21 22:56:29 +0000
committerChris Lattner <sabre@nondot.org>2006-08-21 22:56:29 +0000
commit7c10b0d2c9b4d637edf27548c104b7199b0e3578 (patch)
tree0d2920c3b8e75ce609b83b5a4df386d3b2f13605 /lib/CodeGen/LiveIntervalAnalysis.cpp
parent3c000bf817f90212c8e5585f7c1981e68ee393fc (diff)
Print debug info as:
*** Register mapping *** reg 1024 -> %reg1028 reg 1026 -> EAX reg 1027 -> %reg1028 instead of: *** Register mapping *** reg 1024 -> reg 1028 reg 1026 -> reg 15 reg 1027 -> reg 1028 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 9e0d5d2325..f1f608d271 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -820,8 +820,11 @@ void LiveIntervals::joinIntervals() {
DEBUG(std::cerr << "*** Register mapping ***\n");
DEBUG(for (int i = 0, e = r2rMap_.size(); i != e; ++i)
- if (r2rMap_[i])
- std::cerr << " reg " << i << " -> reg " << r2rMap_[i] << "\n");
+ if (r2rMap_[i]) {
+ std::cerr << " reg " << i << " -> ";
+ printRegName(r2rMap_[i]);
+ std::cerr << "\n";
+ });
}
/// Return true if the two specified registers belong to different register