diff options
author | David Greene <greened@obbligato.org> | 2009-08-03 21:55:09 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-08-03 21:55:09 +0000 |
commit | b5257664795d49ada0d4669fe8ed1cd49c04fbf3 (patch) | |
tree | fd2c7e1b494e4829cff1bb3dfac8e2552d795fe1 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 11e9657eeb76dff6baaab1cbac0b1fb7e1abb439 (diff) |
Re-apply LiveInterval index dumping patch, with fixes suggested by Bill
and others.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 2c7cc765e4..63a391a319 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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); +} |