From 24d0410db074192fc8d9a60a168f6ec9d1b41edd Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Thu, 10 Jul 2003 19:45:28 +0000 Subject: [PATCH] isMarkedForSpill() should be const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7155 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegAlloc/LiveRange.h | 2 +- lib/Target/SparcV9/RegAlloc/LiveRange.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.34.1