diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2013-03-18 23:40:46 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2013-03-18 23:40:46 +0000 |
commit | c2248b0e7895446cccf934b57c6aa3aa712e20d1 (patch) | |
tree | 9f960829aa8a2e8aa836b30ee7588b79561cc6e4 /include/llvm/CodeGen | |
parent | 02a2d4fb9e29f7a2b270bb23596dba02a1f79a03 (diff) | |
download | llvm-c2248b0e7895446cccf934b57c6aa3aa712e20d1.tar.gz llvm-c2248b0e7895446cccf934b57c6aa3aa712e20d1.tar.bz2 llvm-c2248b0e7895446cccf934b57c6aa3aa712e20d1.tar.xz |
Add some constantness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/LiveRangeEdit.h | 2 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveRangeEdit.h b/include/llvm/CodeGen/LiveRangeEdit.h index def7b00ce7..8a32a3c11a 100644 --- a/include/llvm/CodeGen/LiveRangeEdit.h +++ b/include/llvm/CodeGen/LiveRangeEdit.h @@ -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. diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index 1db6252ef4..a3acec8095 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -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); } |