From: Vikram S. Adve Date: Thu, 10 Jul 2003 19:45:28 +0000 (+0000) Subject: isMarkedForSpill() should be const. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=24d0410db074192fc8d9a60a168f6ec9d1b41edd;p=oota-llvm.git isMarkedForSpill() should be const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7155 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAlloc/LiveRange.h b/lib/CodeGen/RegAlloc/LiveRange.h index 588b7b526e0..c3caa295717 100644 --- a/lib/CodeGen/RegAlloc/LiveRange.h +++ b/lib/CodeGen/RegAlloc/LiveRange.h @@ -101,7 +101,7 @@ public: inline void markForSpill() { mustSpill = true; } - inline bool isMarkedForSpill() { return mustSpill; } + inline bool isMarkedForSpill() const { return mustSpill; } inline void setSpillOffFromFP(int StackOffset) { assert(mustSpill && "This LR is not spilled"); diff --git a/lib/Target/SparcV9/RegAlloc/LiveRange.h b/lib/Target/SparcV9/RegAlloc/LiveRange.h index 588b7b526e0..c3caa295717 100644 --- a/lib/Target/SparcV9/RegAlloc/LiveRange.h +++ b/lib/Target/SparcV9/RegAlloc/LiveRange.h @@ -101,7 +101,7 @@ public: inline void markForSpill() { mustSpill = true; } - inline bool isMarkedForSpill() { return mustSpill; } + inline bool isMarkedForSpill() const { return mustSpill; } inline void setSpillOffFromFP(int StackOffset) { assert(mustSpill && "This LR is not spilled");