Remove implementation of operator= and make it private so that it is
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 24 Jul 2004 18:55:15 +0000 (18:55 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 24 Jul 2004 18:55:15 +0000 (18:55 +0000)
not used accidentally.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15172 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LiveInterval.h
lib/CodeGen/LiveInterval.h

index dde7a86712cdc583e25b08c4867c78558546eb6e..673dc7f443000926fb02d394730c091bf388cf8c 100644 (file)
@@ -76,14 +76,6 @@ namespace llvm {
       : 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 @@ namespace llvm {
     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);
index dde7a86712cdc583e25b08c4867c78558546eb6e..673dc7f443000926fb02d394730c091bf388cf8c 100644 (file)
@@ -76,14 +76,6 @@ namespace llvm {
       : 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 @@ namespace llvm {
     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);