mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Be const correct
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7348 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5a61ccdc5
commit
9cdaa63f57
@ -1197,9 +1197,9 @@ static void ReplaceNopsWithUsefulInstr(SchedulingManager& S,
|
||||
nopNodeVec.push_back(graph->getGraphNodeForInstr(MBB[i]));
|
||||
|
||||
//remove the MI from the Machine Code For Instruction
|
||||
TerminatorInst *TI = MBB.getBasicBlock()->getTerminator();
|
||||
const TerminatorInst *TI = MBB.getBasicBlock()->getTerminator();
|
||||
MachineCodeForInstruction& llvmMvec =
|
||||
MachineCodeForInstruction::get((Instruction *)TI);
|
||||
MachineCodeForInstruction::get((const Instruction *)TI);
|
||||
|
||||
for(MachineCodeForInstruction::iterator mciI=llvmMvec.begin(),
|
||||
mciE=llvmMvec.end(); mciI!=mciE; ++mciI){
|
||||
|
@ -1197,9 +1197,9 @@ static void ReplaceNopsWithUsefulInstr(SchedulingManager& S,
|
||||
nopNodeVec.push_back(graph->getGraphNodeForInstr(MBB[i]));
|
||||
|
||||
//remove the MI from the Machine Code For Instruction
|
||||
TerminatorInst *TI = MBB.getBasicBlock()->getTerminator();
|
||||
const TerminatorInst *TI = MBB.getBasicBlock()->getTerminator();
|
||||
MachineCodeForInstruction& llvmMvec =
|
||||
MachineCodeForInstruction::get((Instruction *)TI);
|
||||
MachineCodeForInstruction::get((const Instruction *)TI);
|
||||
|
||||
for(MachineCodeForInstruction::iterator mciI=llvmMvec.begin(),
|
||||
mciE=llvmMvec.end(); mciI!=mciE; ++mciI){
|
||||
|
Loading…
x
Reference in New Issue
Block a user