Make a few more DataLayout variables const.

llvm-svn: 202155
This commit is contained in:
Rafael Espindola 2014-02-25 14:24:11 +00:00
parent 96e51b890b
commit 43b5a51e7c
2 changed files with 5 additions and 5 deletions

View File

@ -606,7 +606,7 @@ private:
FnSetType FnSet;
/// DataLayout for more accurate GEP comparisons. May be NULL.
DataLayout *DL;
const DataLayout *DL;
/// Whether or not the target supports global aliases.
bool HasGlobalAliases;

View File

@ -344,7 +344,7 @@ public:
typedef SmallPtrSet<Value *, 16> ValueSet;
typedef SmallVector<StoreInst *, 8> StoreList;
BoUpSLP(Function *Func, ScalarEvolution *Se, DataLayout *Dl,
BoUpSLP(Function *Func, ScalarEvolution *Se, const DataLayout *Dl,
TargetTransformInfo *Tti, AliasAnalysis *Aa, LoopInfo *Li,
DominatorTree *Dt) :
F(Func), SE(Se), DL(Dl), TTI(Tti), AA(Aa), LI(Li), DT(Dt),
@ -533,7 +533,7 @@ private:
// Analysis and block reference.
Function *F;
ScalarEvolution *SE;
DataLayout *DL;
const DataLayout *DL;
TargetTransformInfo *TTI;
AliasAnalysis *AA;
LoopInfo *LI;
@ -1784,7 +1784,7 @@ struct SLPVectorizer : public FunctionPass {
}
ScalarEvolution *SE;
DataLayout *DL;
const DataLayout *DL;
TargetTransformInfo *TTI;
AliasAnalysis *AA;
LoopInfo *LI;
@ -2234,7 +2234,7 @@ public:
/// \brief Try to find a reduction tree.
bool matchAssociativeReduction(PHINode *Phi, BinaryOperator *B,
DataLayout *DL) {
const DataLayout *DL) {
assert((!Phi ||
std::find(Phi->op_begin(), Phi->op_end(), B) != Phi->op_end()) &&
"Thi phi needs to use the binary operator");