diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2013-08-20 23:04:15 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2013-08-20 23:04:15 +0000 |
commit | 328a4fbfbb778de44d9a738c3efdfd42a58925d9 (patch) | |
tree | 356fcfc7bcf27b99a53ffe585d1c168b0b2981a4 /include | |
parent | 815af99a04edb8b9f5816d2edf6a4ab5de4e5548 (diff) | |
download | llvm-328a4fbfbb778de44d9a738c3efdfd42a58925d9.tar.gz llvm-328a4fbfbb778de44d9a738c3efdfd42a58925d9.tar.bz2 llvm-328a4fbfbb778de44d9a738c3efdfd42a58925d9.tar.xz |
Add some constantness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/BlockFrequencyImpl.h | 2 | ||||
-rw-r--r-- | include/llvm/Analysis/CFG.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Analysis/BlockFrequencyImpl.h b/include/llvm/Analysis/BlockFrequencyImpl.h index 5e14d6f09a..817a44188b 100644 --- a/include/llvm/Analysis/BlockFrequencyImpl.h +++ b/include/llvm/Analysis/BlockFrequencyImpl.h @@ -118,7 +118,7 @@ class BlockFrequencyImpl { /// isBackedge - Return if edge Src -> Dst is a reachable backedge. /// - bool isBackedge(BlockT *Src, BlockT *Dst) { + bool isBackedge(BlockT *Src, BlockT *Dst) const { unsigned a = RPO.lookup(Src); if (!a) return false; diff --git a/include/llvm/Analysis/CFG.h b/include/llvm/Analysis/CFG.h index 979926b18b..e5683c8e59 100644 --- a/include/llvm/Analysis/CFG.h +++ b/include/llvm/Analysis/CFG.h @@ -65,7 +65,8 @@ bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum, /// on branchy code but not loops, and LI is most useful on code with loops but /// does not help on branchy code outside loops. bool isPotentiallyReachable(const Instruction *From, const Instruction *To, - DominatorTree *DT = 0, LoopInfo *LI = 0); + const DominatorTree *DT = 0, + const LoopInfo *LI = 0); /// \brief Determine whether block 'To' is reachable from 'From', returning /// true if uncertain. @@ -74,7 +75,8 @@ bool isPotentiallyReachable(const Instruction *From, const Instruction *To, /// Returns false only if we can prove that once 'From' has been reached then /// 'To' can not be executed. Conservatively returns true. bool isPotentiallyReachable(const BasicBlock *From, const BasicBlock *To, - DominatorTree *DT = 0, LoopInfo *LI = 0); + const DominatorTree *DT = 0, + const LoopInfo *LI = 0); } // End llvm namespace |