summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-05 22:51:54 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-05 22:51:54 +0000
commitb77ec7d26405125fa5685370af5f17fcc9edbecd (patch)
treef22609d0c912c4629d98f79ef81f0a1e1c4a5174 /lib/CodeGen/LiveInterval.cpp
parent34c6f9803499c11ed2dc8479ec768d47370a2d3a (diff)
downloadllvm-b77ec7d26405125fa5685370af5f17fcc9edbecd.tar.gz
llvm-b77ec7d26405125fa5685370af5f17fcc9edbecd.tar.bz2
llvm-b77ec7d26405125fa5685370af5f17fcc9edbecd.tar.xz
Simplify LiveInterval::print().
Don't print out the register number and spill weight, making the TRI argument unnecessary. This allows callers to interpret the reg field. It can currently be a virtual register, a physical register, a spill slot, or a register unit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r--lib/CodeGen/LiveInterval.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp
index 68bb6399a9..8990360a72 100644
--- a/lib/CodeGen/LiveInterval.cpp
+++ b/lib/CodeGen/LiveInterval.cpp
@@ -592,15 +592,10 @@ void LiveRange::dump() const {
dbgs() << *this << "\n";
}
-void LiveInterval::print(raw_ostream &OS, const TargetRegisterInfo *TRI) const {
- OS << PrintReg(reg, TRI);
- if (weight != 0)
- OS << ',' << weight;
-
+void LiveInterval::print(raw_ostream &OS) const {
if (empty())
- OS << " EMPTY";
+ OS << "EMPTY";
else {
- OS << " = ";
for (LiveInterval::Ranges::const_iterator I = ranges.begin(),
E = ranges.end(); I != E; ++I) {
OS << *I;