mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 17:25:49 +00:00
Move operator<<(std::ostream&, const LiveInterval&) out of the header file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10290 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -196,15 +196,8 @@ namespace llvm {
|
|||||||
return lhs.reg == rhs.reg;
|
return lhs.reg == rhs.reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline std::ostream& operator<<(std::ostream& os,
|
std::ostream& operator<<(std::ostream& os,
|
||||||
const LiveIntervals::Interval& li) {
|
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
|
@@ -196,15 +196,8 @@ namespace llvm {
|
|||||||
return lhs.reg == rhs.reg;
|
return lhs.reg == rhs.reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline std::ostream& operator<<(std::ostream& os,
|
std::ostream& operator<<(std::ostream& os,
|
||||||
const LiveIntervals::Interval& li) {
|
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
|
@@ -301,3 +301,14 @@ void LiveIntervals::computeIntervals()
|
|||||||
DEBUG(std::copy(intervals_.begin(), intervals_.end(),
|
DEBUG(std::copy(intervals_.begin(), intervals_.end(),
|
||||||
std::ostream_iterator<Interval>(std::cerr, "\n")));
|
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;
|
||||||
|
}
|
||||||
|
@@ -196,15 +196,8 @@ namespace llvm {
|
|||||||
return lhs.reg == rhs.reg;
|
return lhs.reg == rhs.reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline std::ostream& operator<<(std::ostream& os,
|
std::ostream& operator<<(std::ostream& os,
|
||||||
const LiveIntervals::Interval& li) {
|
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user