Print symbolic register names in debug dumps
authorChris Lattner <sabre@nondot.org>
Wed, 27 Jul 2005 23:03:38 +0000 (23:03 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Jul 2005 23:03:38 +0000 (23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22528 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index 9f0bce8296f84c8cf3dc8b6072ab93f7a9db843c..b242a9c6942fd9a99e5745d84b720fd0e2b5c5ae 100644 (file)
@@ -206,8 +206,10 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
 /// print - Implement the dump method.
 void LiveIntervals::print(std::ostream &O, const Module* ) const {
   O << "********** INTERVALS **********\n";
-  for (const_iterator I = begin(), E = end(); I != E; ++I)
-    O << "  " << I->second << "\n";
+  for (const_iterator I = begin(), E = end(); I != E; ++I) {
+    I->second.print(std::cerr, mri_);
+    std::cerr << "\n";
+  }
 
   O << "********** MACHINEINSTRS **********\n";
   for (MachineFunction::iterator mbbi = mf_->begin(), mbbe = mf_->end();