mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Make some DataLayout pointers const.
No functionality change. Just reduces the noise of an upcoming patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -108,12 +108,12 @@ public:
|
||||
static const ComparableFunction TombstoneKey;
|
||||
static DataLayout * const LookupOnly;
|
||||
|
||||
ComparableFunction(Function *Func, DataLayout *DL)
|
||||
ComparableFunction(Function *Func, const DataLayout *DL)
|
||||
: Func(Func), Hash(profileFunction(Func)), DL(DL) {}
|
||||
|
||||
Function *getFunc() const { return Func; }
|
||||
unsigned getHash() const { return Hash; }
|
||||
DataLayout *getDataLayout() const { return DL; }
|
||||
const DataLayout *getDataLayout() const { return DL; }
|
||||
|
||||
// Drops AssertingVH reference to the function. Outside of debug mode, this
|
||||
// does nothing.
|
||||
@ -129,7 +129,7 @@ private:
|
||||
|
||||
AssertingVH<Function> Func;
|
||||
unsigned Hash;
|
||||
DataLayout *DL;
|
||||
const DataLayout *DL;
|
||||
};
|
||||
|
||||
const ComparableFunction ComparableFunction::EmptyKey = ComparableFunction(0);
|
||||
|
Reference in New Issue
Block a user