Add some constantness.
authorJakub Staszak <kubastaszak@gmail.com>
Mon, 18 Mar 2013 23:40:46 +0000 (23:40 +0000)
committerJakub Staszak <kubastaszak@gmail.com>
Mon, 18 Mar 2013 23:40:46 +0000 (23:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177356 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LiveRangeEdit.h
include/llvm/CodeGen/MachineModuleInfo.h
lib/CodeGen/LiveRangeEdit.cpp

index def7b00ce761e8b691435514f00c6d148568ba28..8a32a3c11a8226de7596fd829fa5e8f09841ef73 100644 (file)
@@ -83,7 +83,7 @@ private:
   /// allUsesAvailableAt - Return true if all registers used by OrigMI at
   /// OrigIdx are also available with the same value at UseIdx.
   bool allUsesAvailableAt(const MachineInstr *OrigMI, SlotIndex OrigIdx,
-                          SlotIndex UseIdx);
+                          SlotIndex UseIdx) const;
 
   /// foldAsLoad - If LI has a single use and a single def that can be folded as
   /// a load, eliminate the register by folding the def into the use.
index 1db6252ef4352d23cb8ff952eec75e2d0e577d4e..a3acec8095473206837f896418eadd57206947d4 100644 (file)
@@ -295,7 +295,7 @@ public:
   /// isUsedFunction - Return true if the functions in the llvm.used list.  This
   /// does not return true for things in llvm.compiler.used unless they are also
   /// in llvm.used.
-  bool isUsedFunction(const Function *F) {
+  bool isUsedFunction(const Function *F) const {
     return UsedFunctions.count(F);
   }
 
index 3b28e6afb670ea067f5cac0435293672111c0ae6..7793e96c354096d770d458f166fa370818aadbeb 100644 (file)
@@ -77,7 +77,7 @@ bool LiveRangeEdit::anyRematerializable(AliasAnalysis *aa) {
 /// OrigIdx are also available with the same value at UseIdx.
 bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI,
                                        SlotIndex OrigIdx,
-                                       SlotIndex UseIdx) {
+                                       SlotIndex UseIdx) const {
   OrigIdx = OrigIdx.getRegSlot(true);
   UseIdx = UseIdx.getRegSlot(true);
   for (unsigned i = 0, e = OrigMI->getNumOperands(); i != e; ++i) {