summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index d28cb04822..1b30bf5937 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -527,6 +527,8 @@ namespace llvm {
/// or stack slot.
class LiveInterval : public LiveRange {
public:
+ typedef LiveRange super;
+
const unsigned reg; // the register or stack slot of this interval.
float weight; // weight of this interval
@@ -554,6 +556,9 @@ namespace llvm {
(thisIndex == otherIndex && reg < other.reg);
}
+ void print(raw_ostream &OS) const;
+ void dump() const;
+
private:
LiveInterval& operator=(const LiveInterval& rhs) LLVM_DELETED_FUNCTION;