llvm.org GIT mirror llvm / 3f86193
Remove implementation of operator= and make it private so that it is not used accidentally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15172 91177308-0d34-0410-b5e6-96231b3b80d8 Alkis Evlogimenos 15 years ago
2 changed file(s) with 2 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
7575 : reg(Reg), weight(Weight), NumValues(0) {
7676 }
7777
78 LiveInterval& operator=(const LiveInterval& rhs) {
79 reg = rhs.reg;
80 weight = rhs.weight;
81 ranges = rhs.ranges;
82 NumValues = rhs.NumValues;
83 return *this;
84 }
85
8678 void swap(LiveInterval& other) {
8779 std::swap(reg, other.reg);
8880 std::swap(weight, other.weight);
159151 Ranges::iterator addRangeFrom(LiveRange LR, Ranges::iterator From);
160152 void extendIntervalEndTo(Ranges::iterator I, unsigned NewEnd);
161153 Ranges::iterator extendIntervalStartTo(Ranges::iterator I, unsigned NewStr);
154 LiveInterval& operator=(const LiveInterval& rhs); // DO NOT IMPLEMENT
162155 };
163156
164157 std::ostream& operator<<(std::ostream& os, const LiveInterval& li);
7575 : reg(Reg), weight(Weight), NumValues(0) {
7676 }
7777
78 LiveInterval& operator=(const LiveInterval& rhs) {
79 reg = rhs.reg;
80 weight = rhs.weight;
81 ranges = rhs.ranges;
82 NumValues = rhs.NumValues;
83 return *this;
84 }
85
8678 void swap(LiveInterval& other) {
8779 std::swap(reg, other.reg);
8880 std::swap(weight, other.weight);
159151 Ranges::iterator addRangeFrom(LiveRange LR, Ranges::iterator From);
160152 void extendIntervalEndTo(Ranges::iterator I, unsigned NewEnd);
161153 Ranges::iterator extendIntervalStartTo(Ranges::iterator I, unsigned NewStr);
154 LiveInterval& operator=(const LiveInterval& rhs); // DO NOT IMPLEMENT
162155 };
163156
164157 std::ostream& operator<<(std::ostream& os, const LiveInterval& li);