[llvm-commits] CVS: llvm/lib/CodeGen/LiveInterval.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Jul 24 11:55:26 PDT 2004



Changes in directory llvm/lib/CodeGen:

LiveInterval.h updated: 1.6 -> 1.7

---
Log message:

Remove implementation of operator= and make it private so that it is
not used accidentally.


---
Diffs of the changes:  (+1 -8)

Index: llvm/lib/CodeGen/LiveInterval.h
diff -u llvm/lib/CodeGen/LiveInterval.h:1.6 llvm/lib/CodeGen/LiveInterval.h:1.7
--- llvm/lib/CodeGen/LiveInterval.h:1.6	Sat Jul 24 06:44:15 2004
+++ llvm/lib/CodeGen/LiveInterval.h	Sat Jul 24 13:55:15 2004
@@ -76,14 +76,6 @@
       : reg(Reg), weight(Weight), NumValues(0) {
     }
 
-    LiveInterval& operator=(const LiveInterval& rhs) {
-      reg = rhs.reg;
-      weight = rhs.weight;
-      ranges = rhs.ranges;
-      NumValues = rhs.NumValues;
-      return *this;
-    }
-
     void swap(LiveInterval& other) {
       std::swap(reg, other.reg);
       std::swap(weight, other.weight);
@@ -160,6 +152,7 @@
     Ranges::iterator addRangeFrom(LiveRange LR, Ranges::iterator From);
     void extendIntervalEndTo(Ranges::iterator I, unsigned NewEnd);
     Ranges::iterator extendIntervalStartTo(Ranges::iterator I, unsigned NewStr);
+    LiveInterval& operator=(const LiveInterval& rhs); // DO NOT IMPLEMENT
   };
 
   std::ostream& operator<<(std::ostream& os, const LiveInterval& li);





More information about the llvm-commits mailing list