diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index fa220419817..92048395f86 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -538,38 +538,6 @@ namespace llvm { void printRegName(unsigned reg) const; }; - - /// IntervalPrefixPrinter - Print live interval indices before each - /// instruction. - class IntervalPrefixPrinter : public PrefixPrinter { - private: - const LiveIntervals &liinfo; - - public: - IntervalPrefixPrinter(const LiveIntervals &lii) - : liinfo(lii) {}; - - // We need null implementations of the other virtual functions to - // avoid warnings about hidden virtual functions. - - raw_ostream &operator()(raw_ostream &out, - const MachineBasicBlock &instr) const { - return out; - } - - raw_ostream &operator()(raw_ostream &out, - const MachineInstr &instr) const; - - std::ostream &operator()(std::ostream &out, - const MachineBasicBlock &instr) const { - return out; - } - - std::ostream &operator()(std::ostream &out, - const MachineInstr &instr) const { - return out; - } - }; } // End llvm namespace #endif diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index bbbdee75a52..839817cf039 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -2550,8 +2550,3 @@ LiveRange LiveIntervals::addLiveRangeToEndOfBlock(unsigned reg, return LR; } -raw_ostream & -IntervalPrefixPrinter::operator()(raw_ostream &out, - const MachineInstr &instr) const { - return out << liinfo.getInstructionIndex(&instr); -}