isMarkedForSpill() should be const.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 10 Jul 2003 19:45:28 +0000 (19:45 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 10 Jul 2003 19:45:28 +0000 (19:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7155 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAlloc/LiveRange.h
lib/Target/SparcV9/RegAlloc/LiveRange.h

index 588b7b526e06c2e485bd3323a6185712f84a3db3..c3caa295717b937320a510bdbb6b4fdc87b1cce8 100644 (file)
@@ -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");
index 588b7b526e06c2e485bd3323a6185712f84a3db3..c3caa295717b937320a510bdbb6b4fdc87b1cce8 100644 (file)
@@ -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");