diff options
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 11 | ||||
-rw-r--r-- | include/llvm/CodeGen/LiveIntervals.h | 11 | ||||
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 11 | ||||
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.h | 11 |
4 files changed, 17 insertions, 27 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index b2f0416312..2be89fda5b 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -196,15 +196,8 @@ namespace llvm { return lhs.reg == rhs.reg; } - inline std::ostream& operator<<(std::ostream& os, - const LiveIntervals::Interval& li) { - os << "%reg" << li.reg << " = "; - for (LiveIntervals::Interval::Ranges::const_iterator - i = li.ranges.begin(), e = li.ranges.end(); i != e; ++i) { - os << "[" << i->first << ", " << i->second << "]"; - } - return os; - } + std::ostream& operator<<(std::ostream& os, + const LiveIntervals::Interval& li); } // End llvm namespace diff --git a/include/llvm/CodeGen/LiveIntervals.h b/include/llvm/CodeGen/LiveIntervals.h index b2f0416312..2be89fda5b 100644 --- a/include/llvm/CodeGen/LiveIntervals.h +++ b/include/llvm/CodeGen/LiveIntervals.h @@ -196,15 +196,8 @@ namespace llvm { return lhs.reg == rhs.reg; } - inline std::ostream& operator<<(std::ostream& os, - const LiveIntervals::Interval& li) { - os << "%reg" << li.reg << " = "; - for (LiveIntervals::Interval::Ranges::const_iterator - i = li.ranges.begin(), e = li.ranges.end(); i != e; ++i) { - os << "[" << i->first << ", " << i->second << "]"; - } - return os; - } + std::ostream& operator<<(std::ostream& os, + const LiveIntervals::Interval& li); } // End llvm namespace diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index ec15c0823e..c9f7b34c0b 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -301,3 +301,14 @@ void LiveIntervals::computeIntervals() DEBUG(std::copy(intervals_.begin(), intervals_.end(), std::ostream_iterator<Interval>(std::cerr, "\n"))); } + +std::ostream& llvm::operator<<(std::ostream& os, + const LiveIntervals::Interval& li) +{ + os << "%reg" << li.reg << " = "; + for (LiveIntervals::Interval::Ranges::const_iterator + i = li.ranges.begin(), e = li.ranges.end(); i != e; ++i) { + os << "[" << i->first << "," << i->second << "]"; + } + return os; +} diff --git a/lib/CodeGen/LiveIntervalAnalysis.h b/lib/CodeGen/LiveIntervalAnalysis.h index b2f0416312..2be89fda5b 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.h +++ b/lib/CodeGen/LiveIntervalAnalysis.h @@ -196,15 +196,8 @@ namespace llvm { return lhs.reg == rhs.reg; } - inline std::ostream& operator<<(std::ostream& os, - const LiveIntervals::Interval& li) { - os << "%reg" << li.reg << " = "; - for (LiveIntervals::Interval::Ranges::const_iterator - i = li.ranges.begin(), e = li.ranges.end(); i != e; ++i) { - os << "[" << i->first << ", " << i->second << "]"; - } - return os; - } + std::ostream& operator<<(std::ostream& os, + const LiveIntervals::Interval& li); } // End llvm namespace |