summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf3f7d6f6e21afdf2481bffdba9e10bb19d60cdd0 (patch)
treec336d3d87d625b5e0083f4c8bf077379c092230a /llvm/lib/CodeGen/LiveInterval.cpp
parent12e03dae448b32e7d43d6c40021cbc596cddebdd (diff)
downloadbcm5719-llvm-f3f7d6f6e21afdf2481bffdba9e10bb19d60cdd0.tar.gz
bcm5719-llvm-f3f7d6f6e21afdf2481bffdba9e10bb19d60cdd0.zip
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. llvm-svn: 158031
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index 68bb6399a9d..8990360a721 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud