diff options
Diffstat (limited to 'lib/CodeGen/LiveRangeEdit.h')
-rw-r--r-- | lib/CodeGen/LiveRangeEdit.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveRangeEdit.h b/lib/CodeGen/LiveRangeEdit.h index aa86740773..363f4d7572 100644 --- a/lib/CodeGen/LiveRangeEdit.h +++ b/lib/CodeGen/LiveRangeEdit.h @@ -76,7 +76,7 @@ public: /// rematerializing values because they are about to be removed. LiveRangeEdit(LiveInterval &parent, SmallVectorImpl<LiveInterval*> &newRegs, - Delegate *delegate, + Delegate *delegate = 0, const SmallVectorImpl<LiveInterval*> *uselessRegs = 0) : parent_(parent), newRegs_(newRegs), delegate_(delegate), @@ -95,6 +95,13 @@ public: bool empty() const { return size() == 0; } LiveInterval *get(unsigned idx) const { return newRegs_[idx+firstNew_]; } + /// FIXME: Temporary accessors until we can get rid of + /// LiveIntervals::AddIntervalsForSpills + SmallVectorImpl<LiveInterval*> *getNewVRegs() { return &newRegs_; } + const SmallVectorImpl<LiveInterval*> *getUselessVRegs() { + return uselessRegs_; + } + /// create - Create a new register with the same class and stack slot as /// parent. LiveInterval &create(MachineRegisterInfo&, LiveIntervals&, VirtRegMap&); |