From 3f86193cd2153595f0e32d8a8d8a0e7d4ec97faf Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Sat, 24 Jul 2004 18:55:15 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/LiveInterval.h | 9 +-------- lib/CodeGen/LiveInterval.h | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index dde7a86712c..673dc7f4430 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -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); diff --git a/lib/CodeGen/LiveInterval.h b/lib/CodeGen/LiveInterval.h index dde7a86712c..673dc7f4430 100644 --- a/lib/CodeGen/LiveInterval.h +++ b/lib/CodeGen/LiveInterval.h @@ -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); -- 2.34.1