diff options
author | David Greene <greened@obbligato.org> | 2009-07-22 21:56:14 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-07-22 21:56:14 +0000 |
commit | 7b04db41721529da6367c37f2a8de20894f17869 (patch) | |
tree | 4c0aa0ba5bfe8e2daabd08e9558f8f8133e114a1 /include/llvm | |
parent | 474088a63f84f19eed2687c74605de0f70c99469 (diff) | |
download | external_llvm-7b04db41721529da6367c37f2a8de20894f17869.zip external_llvm-7b04db41721529da6367c37f2a8de20894f17869.tar.gz external_llvm-7b04db41721529da6367c37f2a8de20894f17869.tar.bz2 |
Constify the key in Mi2IndexMap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 40991e7..32bf67b 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -79,7 +79,7 @@ namespace llvm { /// FunctionSize - The number of instructions present in the function uint64_t FunctionSize; - typedef DenseMap<MachineInstr*, unsigned> Mi2IndexMap; + typedef DenseMap<const MachineInstr*, unsigned> Mi2IndexMap; Mi2IndexMap mi2iMap_; typedef std::vector<MachineInstr*> Index2MiMap; @@ -198,7 +198,7 @@ namespace llvm { } /// getInstructionIndex - returns the base index of instr - unsigned getInstructionIndex(MachineInstr* instr) const { + unsigned getInstructionIndex(const MachineInstr* instr) const { Mi2IndexMap::const_iterator it = mi2iMap_.find(instr); assert(it != mi2iMap_.end() && "Invalid instruction!"); return it->second; |