summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-10-10 21:29:05 +0000
committerMatthias Braun <matze@braunis.de>2013-10-10 21:29:05 +0000
commit03d9609c6154ed91daefb4e4f89b7298c11961f3 (patch)
tree59aac1ea0785fcb9ecbf03b9c55000b9c3a6c365 /lib/CodeGen/LiveInterval.cpp
parent4f3b5e8c9232e43d1291aab8db5f5698d7ee0ea4 (diff)
downloadllvm-03d9609c6154ed91daefb4e4f89b7298c11961f3.tar.gz
llvm-03d9609c6154ed91daefb4e4f89b7298c11961f3.tar.bz2
llvm-03d9609c6154ed91daefb4e4f89b7298c11961f3.tar.xz
Print register in LiveInterval::print()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r--lib/CodeGen/LiveInterval.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp
index f7b5d64b10..2b8feb8c3b 100644
--- a/lib/CodeGen/LiveInterval.cpp
+++ b/lib/CodeGen/LiveInterval.cpp
@@ -617,10 +617,19 @@ void LiveRange::print(raw_ostream &OS) const {
}
}
+void LiveInterval::print(raw_ostream &OS) const {
+ OS << PrintReg(reg) << ' ';
+ super::print(OS);
+}
+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void LiveRange::dump() const {
dbgs() << *this << "\n";
}
+
+void LiveInterval::dump() const {
+ dbgs() << *this << "\n";
+}
#endif
#ifndef NDEBUG