summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-08-03 21:55:09 +0000
committerDavid Greene <greened@obbligato.org>2009-08-03 21:55:09 +0000
commitec9bc28812e6b845e585a780116a9a81ee8fc208 (patch)
tree205714e9a8764d1a4bf833320b282d22624d66a9 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parentd2c179c8f6a8569d6307532e2aac0ac4a5e4e71a (diff)
downloadbcm5719-llvm-ec9bc28812e6b845e585a780116a9a81ee8fc208.tar.gz
bcm5719-llvm-ec9bc28812e6b845e585a780116a9a81ee8fc208.zip
Re-apply LiveInterval index dumping patch, with fixes suggested by Bill
and others. llvm-svn: 78003
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 2c7cc765e4f..63a391a319a 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -2501,3 +2501,9 @@ LiveRange LiveIntervals::addLiveRangeToEndOfBlock(unsigned reg,
return LR;
}
+
+raw_ostream &
+IntervalPrefixPrinter::operator()(raw_ostream &out,
+ const MachineInstr &instr) const {
+ return out << liinfo.getInstructionIndex(&instr);
+}
OpenPOWER on IntegriCloud